summaryrefslogtreecommitdiff
path: root/poky/scripts/lib/wic/engine.py
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2019-07-08 15:24:31 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-07-08 16:34:48 +0300
commit2939317205d1f39eefebec7bd6ba01faaa0f9369 (patch)
tree45f4ba1e0bca7dc394b7fa77ca3122f1121a6a55 /poky/scripts/lib/wic/engine.py
parent963b1beb7e04e1c6c55bea2104b856e3121202db (diff)
downloadopenbmc-2.7.0-rc1.tar.xz
reset upstream subtrees to warrior HEAD2.7.0-rc1
Reset the following subtrees on warrior HEAD: meta-security: 4f7be0d252(warrior) poky: 38d5c8ea98(warrior) meta-raspberrypi: 6c73694912(warrior) meta-openembedded: 6fa72d587a(warrior) Change-Id: Id2550baeb90de14bdd9ee8c06f2c619fc719bc68 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'poky/scripts/lib/wic/engine.py')
-rw-r--r--poky/scripts/lib/wic/engine.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/poky/scripts/lib/wic/engine.py b/poky/scripts/lib/wic/engine.py
index 61939ad194..42e93c3eb8 100644
--- a/poky/scripts/lib/wic/engine.py
+++ b/poky/scripts/lib/wic/engine.py
@@ -75,8 +75,7 @@ def find_canned_image(scripts_path, wks_file):
for fname in files:
if fname.endswith("~") or fname.endswith("#"):
continue
- if ((fname.endswith(".wks") and wks_file + ".wks" == fname) or \
- (fname.endswith(".wks.in") and wks_file + ".wks.in" == fname)):
+ if fname.endswith(".wks") and wks_file + ".wks" == fname:
fullpath = os.path.join(canned_wks_dir, fname)
return fullpath
return None
@@ -93,7 +92,7 @@ def list_canned_images(scripts_path):
for fname in files:
if fname.endswith("~") or fname.endswith("#"):
continue
- if fname.endswith(".wks") or fname.endswith(".wks.in"):
+ if fname.endswith(".wks"):
fullpath = os.path.join(canned_wks_dir, fname)
with open(fullpath) as wks:
for line in wks:
@@ -102,7 +101,7 @@ def list_canned_images(scripts_path):
if idx != -1:
desc = line[idx + len("short-description:"):].strip()
break
- basename = fname.split('.')[0]
+ basename = os.path.splitext(fname)[0]
print(" %s\t\t%s" % (basename.ljust(30), desc))