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 <anders.roxell@enea.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
604568ca8e
commit
02d2a5e68c
|
@ -73,13 +73,12 @@ def clean_package_list(package_list):
|
||||||
def get_latest_released_meego_source_package_list():
|
def get_latest_released_meego_source_package_list():
|
||||||
"Returns list of all the name os packages in the latest meego distro"
|
"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 = []
|
package_names = []
|
||||||
for line in f:
|
try:
|
||||||
package_names.append(line[:-1] + ":" + "main") # Also strip the '\n' at the end
|
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)
|
package_list=clean_package_list(package_names)
|
||||||
return "1.0", package_list
|
return "1.0", package_list
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue