From febfbc98572af4eba90ed90b2f8a65a8a2616311 Mon Sep 17 00:00:00 2001 From: Ashish Chaudhari Date: Fri, 24 Oct 2014 17:30:54 -0700 Subject: utils: Minor fixes in images downloader and packaging scripts --- images/create_imgs_package.py | 2 +- images/make_zip.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'images') diff --git a/images/create_imgs_package.py b/images/create_imgs_package.py index 642edaebb..4b49390ce 100755 --- a/images/create_imgs_package.py +++ b/images/create_imgs_package.py @@ -38,7 +38,7 @@ def clear_img_dir(img_root_dir): def get_zipfilename_from_cpack_output(cpoutput): """ Parses the output of the ZIP-file creating script and scrapes the actual file name. """ - regex = re.compile("\/build\/(?P.*\.zip)") + regex = re.compile("\/build\/(?P[^\/]+\.zip)") results = regex.search(cpoutput) return results.group('filename') diff --git a/images/make_zip.sh b/images/make_zip.sh index 0c59238a0..b2e9645ef 100755 --- a/images/make_zip.sh +++ b/images/make_zip.sh @@ -18,7 +18,7 @@ fi if [ -e "images/LICENSE" ]; then rm images/LICENSE fi -TAGFILES=`ls images/*.tag` +TAGFILES=`ls images/*.tag 2>/dev/null` if [ -n "$TAGFILES" ]; then rm $TAGFILES fi -- cgit v1.2.3