summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Kashkarov <m.kashkarov@partner.samsung.com>2018-12-28 16:24:10 +0300
committerMikhail Kashkarov <m.kashkarov@partner.samsung.com>2018-12-28 16:35:00 +0300
commitd0fee631510e1b7d981f531777a910662b2db53c (patch)
tree1d8c473d36aa392d930fe84ddb2d180b7703eaf7
parent190d64daadbdd442f9388b31bff028ae87237d22 (diff)
downloadmic-sandbox/mkashkarov/prepackage.tar.gz
mic-sandbox/mkashkarov/prepackage.tar.bz2
mic-sandbox/mkashkarov/prepackage.zip
[zypp] Support %prepackages without dependencies from %packagessandbox/mkashkarov/prepackage
Zypp installed prepackages only if they are already in collected transaction items from zypp.GetResolvablesToInsDel. Prepackages that do not have dependencies are skipped, add them explicitly. Change-Id: Id2d9e916fd4c2bdd9ce04d7c7c182da6b88496f3
-rw-r--r--plugins/backend/zypppkgmgr.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/backend/zypppkgmgr.py b/plugins/backend/zypppkgmgr.py
index 9358cbe..fbad4f4 100644
--- a/plugins/backend/zypppkgmgr.py
+++ b/plugins/backend/zypppkgmgr.py
@@ -472,6 +472,11 @@ class Zypp(BackendPlugin):
installed_pkgs = todo._toInstall
dlpkgs = []
+ # Include prepackages into installation list
+ for pre_pkg in self.pre_pkgs:
+ item = zypp.asKindPackage(self._zyppQueryPackage(pre_pkg))
+ dlpkgs.append(item)
+
for pitem in installed_pkgs:
if not zypp.isKindPattern(pitem) and \
not self.inDeselectPackages(pitem):