2010-03-26 11:56:28 +01:00
|
|
|
--- ./lib/depends.c.orig 2009-12-07 14:36:49.000000000 +0000
|
|
|
|
+++ ./lib/depends.c 2010-03-24 16:47:28.000000000 +0000
|
|
|
|
@@ -450,8 +450,13 @@ retry:
|
2009-08-28 15:54:03 +02:00
|
|
|
}
|
2006-12-19 00:17:44 +01:00
|
|
|
|
|
|
|
unsatisfied:
|
|
|
|
- rc = 1; /* dependency is unsatisfied */
|
|
|
|
- rpmdsNotify(dep, NULL, rc);
|
|
|
|
+ if (rpmdsFlags(dep) & RPMSENSE_MISSINGOK) {
|
|
|
|
+ rc = 0; /* dependency is unsatisfied, but just a hint. */
|
|
|
|
+ rpmdsNotify(dep, _("(hint skipped)"), rc);
|
|
|
|
+ } else {
|
|
|
|
+ rc = 1; /* dependency is unsatisfied */
|
|
|
|
+ rpmdsNotify(dep, NULL, rc);
|
|
|
|
+ }
|
|
|
|
|
|
|
|
exit:
|
2010-03-26 11:56:28 +01:00
|
|
|
if (cacheThis) {
|
|
|
|
--- ./lib/rpmds.h.orig 2009-12-07 14:36:49.000000000 +0000
|
|
|
|
+++ ./lib/rpmds.h 2010-03-24 16:47:28.000000000 +0000
|
2009-08-28 15:54:03 +02:00
|
|
|
@@ -73,6 +73,7 @@ typedef enum rpmsenseFlags_e {
|
2006-12-19 00:17:44 +01:00
|
|
|
RPMSENSE_SCRIPT_POSTUN | \
|
|
|
|
RPMSENSE_SCRIPT_VERIFY | \
|
|
|
|
RPMSENSE_FIND_REQUIRES | \
|
|
|
|
+ RPMSENSE_MISSINGOK | \
|
|
|
|
RPMSENSE_SCRIPT_PREP | \
|
|
|
|
RPMSENSE_SCRIPT_BUILD | \
|
|
|
|
RPMSENSE_SCRIPT_INSTALL | \
|