backends/rpm: add support for setting dependency flags This is useful for OpenEmbedded so that we can do the equivalent of the --nolinktos and --noparentdirs rpm command line options. Upstream-Status: Pending Signed-off-by: Paul Eggleton diff --git a/smart/backends/rpm/pm.py b/smart/backends/rpm/pm.py index 707a146..aec82e7 100644 --- a/smart/backends/rpm/pm.py +++ b/smart/backends/rpm/pm.py @@ -106,6 +106,23 @@ class RPMPackageManager(PackageManager): flags |= rpm.RPMTRANS_FLAG_TEST ts.setFlags(flags) + dflags = ts.setDFlags(0) + if sysconf.get("rpm-noupgrade", False): + dflags |= rpm.RPMDEPS_FLAG_NOUPGRADE + if sysconf.get("rpm-norequires", False): + dflags |= rpm.RPMDEPS_FLAG_NOREQUIRES + if sysconf.get("rpm-noconflicts", False): + dflags |= rpm.RPMDEPS_FLAG_NOCONFLICTS + if sysconf.get("rpm-noobsoletes", False): + dflags |= rpm.RPMDEPS_FLAG_NOOBSOLETES + if sysconf.get("rpm-noparentdirs", False): + dflags |= rpm.RPMDEPS_FLAG_NOPARENTDIRS + if sysconf.get("rpm-nolinktos", False): + dflags |= rpm.RPMDEPS_FLAG_NOLINKTOS + if sysconf.get("rpm-nosuggest", False): + dflags |= rpm.RPMDEPS_FLAG_NOSUGGEST + ts.setDFlags(dflags) + # Set rpm verbosity level. levelname = sysconf.get('rpm-log-level') level = { -- 1.7.9.5 e' href='/cgit/multitech-oe.git/log/packages/keylaunch'>logtreecommitdiff
path: root/packages/keylaunch
AgeCommit message (Expand)AuthorFiles
2008-10-18bb files: Revert the introduction of FILE_PRHolger Hans Peter Freyther2
2008-10-15[PR] Change PR to FILE_PR and intro PR as FILE_PR + DISTRO_PRHolger Hans Peter Freyther2
2008-10-15mtn2git: remove .mtn2git_empty files in non-empty directoriesJan Luebbe10
2008-02-13gpe-login, keylaunch: Annotate patches submitted upstream as RFCed on the list.Paul Sokolovsky1
2007-11-26keylaunch 2.0.10: Apply patch to unbreak key event capture.Paul Sokolovsky2
2007-11-26keylaunch-conf: Fix permissions on keylaunchrc.Paul Sokolovsky1
2007-11-25keylaunch-conf: Never-ever use "Pressed" events in public configs.Paul Sokolovsky1
2007-11-25keylaunch-conf: Describe keylaunchrc format.Paul Sokolovsky1
2007-11-25keylaunch 2.0.10: Separate a keylaunch, a generic X key binding utility,Paul Sokolovsky19
2007-06-05keylaunch: Import forgotten patch from oz354x branch, closing bug #2231Matthias Hentges1
2007-06-04keylaunch: Swap F9 and F10 for SL-Cxx00....again *sigh*Matthias Hentges3
2007-05-30keylaunch: the h/w hotkeys and LCD softkeys are now in the F20+ range (there ...Matthias Hentges3
2007-05-30keylaunch: Fix RDEPENDS to display-brightness for selected machines, closing ...Matthias Hentges1
2007-05-30keylaunch: Swap Calendar and Address buttons to launch the correct applicatio...Matthias Hentges2
2007-05-25keylaunch: Update patchFlorian Boor1
2006-12-31remove extra whitespace at end-of-line in about 900 bb files.Rolf Leggewie1