- For now there's no way to set this flag from packages so it doesn't
actually do anything, but it doesn't hurt anything either, allows
Suse & friends to drop one patch (greetings Michael :) and there
are might be some things we could use this for internally.
}
unsatisfied:
- rc = 1; /* dependency is unsatisfied */
- rpmdsNotify(dep, NULL, rc);
+ if (dsflags & RPMSENSE_MISSINGOK) {
+ /* note the result, but missingok deps are never unsatisfied */
+ rpmdsNotify(dep, "(missingok)", 1);
+ } else {
+ /* dependency is unsatisfied */
+ rc = 1;
+ rpmdsNotify(dep, NULL, rc);
+ }
exit:
return rc;
RPMSENSE_KEYRING | \
RPMSENSE_PRETRANS | \
RPMSENSE_POSTTRANS | \
- RPMSENSE_PREREQ)
+ RPMSENSE_PREREQ | \
+ RPMSENSE_MISSINGOK)
#define _notpre(_x) ((_x) & ~RPMSENSE_PREREQ)
#define _INSTALL_ONLY_MASK \