summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJan Luebbe <jlu@pengutronix.de>2020-04-01 16:58:02 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-04-17 08:29:02 +0100
commit54eec13b6ee9135abd1c227529cd9c280adf8abf (patch)
tree9efcee1dde9b30e54b865bc90b5bced4b97bd2de /meta
parent5ab3ff5dcc7ec987a57276cd88a31c4a148f4490 (diff)
downloadpoky-54eec13b6ee9135abd1c227529cd9c280adf8abf.tar.gz
lib/oe/package_manager: fix handling of last package
In commit 7d214b34e11dc57316ed5c1c7747c4601286f6d2, only the code in the for loop was modified to store the pkgarch value. The code used if there was no empty line at the end was not modified. Instead of fixing the duplicated code, remove it and just make sure that a final empty line is processed. (From OE-Core rev: 7dba11373af742d4e4924e14e8fd386d53ffddbd) Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit a7b93c695b23d015607b179d98526b9b14c03d45) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oe/package_manager.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 61206daeaa..27b2f17f95 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -41,7 +41,7 @@ def opkg_query(cmd_output):
41 filename = "" 41 filename = ""
42 dep = [] 42 dep = []
43 pkgarch = "" 43 pkgarch = ""
44 for line in cmd_output.splitlines(): 44 for line in cmd_output.splitlines()+['']:
45 line = line.rstrip() 45 line = line.rstrip()
46 if ':' in line: 46 if ':' in line:
47 if line.startswith("Package: "): 47 if line.startswith("Package: "):
@@ -80,12 +80,6 @@ def opkg_query(cmd_output):
80 dep = [] 80 dep = []
81 pkgarch = "" 81 pkgarch = ""
82 82
83 if pkg:
84 if not filename:
85 filename = "%s_%s_%s.ipk" % (pkg, ver, arch)
86 output[pkg] = {"arch":arch, "ver":ver,
87 "filename":filename, "deps": dep }
88
89 return output 83 return output
90 84
91def failed_postinsts_abort(pkgs, log_path): 85def failed_postinsts_abort(pkgs, log_path):