From: Anders Roxell Date: Mon, 11 Feb 2013 13:26:28 +0000 (+0100) Subject: distro_check: Remove creation of empty Meego filelist. X-Git-Tag: rev_ivi_2015_02_04~13731 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb4ceb106dfb39d7bd3d050c1e17cb6cebc74936;p=scm%2Fbb%2Ftizen-distro.git distro_check: Remove creation of empty Meego filelist. This fixes permissions errors when running distrodata. (From OE-Core rev: c58e6cf352774e147038e6543ac95ab0060f2327) Signed-off-by: Anders Roxell Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/distro_check.py b/meta/lib/oe/distro_check.py index ad13d5e..8ed5b0e 100644 --- a/meta/lib/oe/distro_check.py +++ b/meta/lib/oe/distro_check.py @@ -73,13 +73,12 @@ def clean_package_list(package_list): def get_latest_released_meego_source_package_list(): "Returns list of all the name os packages in the latest meego distro" - if not os.path.isfile("/tmp/Meego-1.1"): - os.mknod("/tmp/Meego-1.1") - f = open("/tmp/Meego-1.1", "r") package_names = [] - for line in f: - package_names.append(line[:-1] + ":" + "main") # Also strip the '\n' at the end - + try: + f = open("/tmp/Meego-1.1", "r") + for line in f: + package_names.append(line[:-1] + ":" + "main") # Also strip the '\n' at the end + except IOError: pass package_list=clean_package_list(package_names) return "1.0", package_list