Patchwork distro_check: Remove creation of empty Meego filelist.

login
register
mail settings
Submitter anders.roxell@gmail.com
Date Feb. 11, 2013, 1:26 p.m.
Message ID <1360589188-45401-1-git-send-email-anders.roxell@gmail.com>
Download mbox | patch
Permalink /patch/44429/
State Accepted
Commit 02d2a5e68cab490cb83db6e4f2f0802221efe8a2
Headers show

Comments

anders.roxell@gmail.com - Feb. 11, 2013, 1:26 p.m.
From: Anders Roxell <anders.roxell@enea.com>

This fixes permissions errors when running distrodata.

Signed-off-by: Anders Roxell <anders.roxell@enea.com>
---
 meta/lib/oe/distro_check.py |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

Patch

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