2011-05-16 18:07:44 +02:00
|
|
|
support missingok dependency bit
|
|
|
|
|
|
|
|
--- ./lib/depends.c.orig 2011-02-15 13:10:59.000000000 +0000
|
|
|
|
+++ ./lib/depends.c 2011-05-10 16:06:39.000000000 +0000
|
|
|
|
@@ -448,8 +448,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:
|
2011-05-16 18:07:44 +02:00
|
|
|
return rc;
|
|
|
|
--- ./lib/rpmds.h.orig 2011-05-10 16:09:22.000000000 +0000
|
|
|
|
+++ ./lib/rpmds.h 2011-05-10 16:08:04.000000000 +0000
|
|
|
|
@@ -68,6 +68,7 @@ typedef rpmFlags rpmsenseFlags;
|
2006-12-19 00:17:44 +01:00
|
|
|
RPMSENSE_SCRIPT_POSTUN | \
|
|
|
|
RPMSENSE_SCRIPT_VERIFY | \
|
|
|
|
RPMSENSE_FIND_REQUIRES | \
|
|
|
|
+ RPMSENSE_MISSINGOK | \
|
2011-05-16 18:07:44 +02:00
|
|
|
RPMSENSE_RPMLIB | \
|
|
|
|
RPMSENSE_KEYRING | \
|
|
|
|
RPMSENSE_PRETRANS | \
|