From: <anders.roxell@gmail.com>
To: <openembedded-core@lists.openembedded.org>
Cc: Anders Roxell <anders.roxell@enea.com>
Subject: [PATCH] distro_check: Remove creation of empty Meego filelist.
Date: Mon, 11 Feb 2013 14:26:28 +0100 [thread overview]
Message-ID: <1360589188-45401-1-git-send-email-anders.roxell@gmail.com> (raw)
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(-)
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
--
1.7.5.4
reply other threads:[~2013-02-11 13:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1360589188-45401-1-git-send-email-anders.roxell@gmail.com \
--to=anders.roxell@gmail.com \
--cc=anders.roxell@enea.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox