diff options
author | Anders Roxell <anders.roxell@enea.com> | 2013-02-11 14:26:28 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-12 13:22:14 +0000 |
commit | c58e6cf352774e147038e6543ac95ab0060f2327 (patch) | |
tree | 71fa76f1521a86080b8aa0710f1a0032dd9c6200 /meta | |
parent | 7a0eca4379b72981a378ffe62f4e8e3428ee791a (diff) | |
download | openembedded-core-c58e6cf352774e147038e6543ac95ab0060f2327.tar.gz openembedded-core-c58e6cf352774e147038e6543ac95ab0060f2327.tar.bz2 openembedded-core-c58e6cf352774e147038e6543ac95ab0060f2327.zip |
distro_check: Remove creation of empty Meego filelist.
This fixes permissions errors when running distrodata.
Signed-off-by: Anders Roxell <anders.roxell@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/distro_check.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/meta/lib/oe/distro_check.py b/meta/lib/oe/distro_check.py index ad13d5e492..8ed5b0ec80 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 |