Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
rpm
missingok.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File missingok.diff of Package rpm
Obey MISSINGOK flag for dependencies. Backport from rpm-4.4.7. Index: lib/depends.c =================================================================== --- lib/depends.c.orig +++ lib/depends.c @@ -518,8 +518,13 @@ retry: } 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: /* @@ -827,6 +832,8 @@ static inline const char * identifyDepen return "Requires(postun):"; if (f & RPMSENSE_SCRIPT_VERIFY) return "Requires(verify):"; + if (f & RPMSENSE_MISSINGOK) + return "Requires(hint):"; if (f & RPMSENSE_FIND_REQUIRES) return "Requires(auto):"; return "Requires:"; Index: lib/rpmds.h =================================================================== --- lib/rpmds.h.orig +++ lib/rpmds.h @@ -73,6 +73,7 @@ typedef enum rpmsenseFlags_e { RPMSENSE_SCRIPT_POSTUN | \ RPMSENSE_SCRIPT_VERIFY | \ RPMSENSE_FIND_REQUIRES | \ + RPMSENSE_MISSINGOK | \ RPMSENSE_SCRIPT_PREP | \ RPMSENSE_SCRIPT_BUILD | \ RPMSENSE_SCRIPT_INSTALL | \
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor