* [PATCH 0/1] generate-manifest-2.7.py: replace os.popen with os.unlink
@ 2012-05-31 8:08 Robert Yang
2012-05-31 8:08 ` [PATCH 1/1] " Robert Yang
2012-06-11 17:51 ` [PATCH 0/1] " Flanagan, Elizabeth
0 siblings, 2 replies; 3+ messages in thread
From: Robert Yang @ 2012-05-31 8:08 UTC (permalink / raw)
To: openembedded-core; +Cc: Zhenfeng.Zhao
The following changes since commit 348da93e283b2b8454fd9cde80d4b17378e2a168:
webkit-gtk: Use glib as unicode backend to avoid browser crash (2012-05-30 17:38:02 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib robert/gen_man_py
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/gen_man_py
Robert Yang (1):
generate-manifest-2.7.py: replace os.popen with os.unlink
scripts/contrib/python/generate-manifest-2.7.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] generate-manifest-2.7.py: replace os.popen with os.unlink
2012-05-31 8:08 [PATCH 0/1] generate-manifest-2.7.py: replace os.popen with os.unlink Robert Yang
@ 2012-05-31 8:08 ` Robert Yang
2012-06-11 17:51 ` [PATCH 0/1] " Flanagan, Elizabeth
1 sibling, 0 replies; 3+ messages in thread
From: Robert Yang @ 2012-05-31 8:08 UTC (permalink / raw)
To: openembedded-core; +Cc: Zhenfeng.Zhao
The os.popen function would fail (more or less) silently if the executed
program cannot be found, and here what we need is os.system not os.popen
since it doesn't use the return value, use os.unlink() and ignore
exceptions from it would be better as Chris suggested.
[YOCTO #2454]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
scripts/contrib/python/generate-manifest-2.7.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/scripts/contrib/python/generate-manifest-2.7.py b/scripts/contrib/python/generate-manifest-2.7.py
index 7b43137..5c52724 100755
--- a/scripts/contrib/python/generate-manifest-2.7.py
+++ b/scripts/contrib/python/generate-manifest-2.7.py
@@ -149,7 +149,10 @@ class MakefileMaker:
if __name__ == "__main__":
if len( sys.argv ) > 1:
- os.popen( "rm -f ./%s" % sys.argv[1] )
+ try:
+ os.unlink(sys.argv[1])
+ except Exception:
+ sys.exc_clear()
outfile = file( sys.argv[1], "w" )
else:
outfile = sys.stdout
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 0/1] generate-manifest-2.7.py: replace os.popen with os.unlink
2012-05-31 8:08 [PATCH 0/1] generate-manifest-2.7.py: replace os.popen with os.unlink Robert Yang
2012-05-31 8:08 ` [PATCH 1/1] " Robert Yang
@ 2012-06-11 17:51 ` Flanagan, Elizabeth
1 sibling, 0 replies; 3+ messages in thread
From: Flanagan, Elizabeth @ 2012-06-11 17:51 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Thu, May 31, 2012 at 1:08 AM, Robert Yang <liezhi.yang@windriver.com> wrote:
> The following changes since commit 348da93e283b2b8454fd9cde80d4b17378e2a168:
>
> webkit-gtk: Use glib as unicode backend to avoid browser crash (2012-05-30 17:38:02 +0100)
>
> are available in the git repository at:
> git://git.pokylinux.org/poky-contrib robert/gen_man_py
> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/gen_man_py
>
> Robert Yang (1):
> generate-manifest-2.7.py: replace os.popen with os.unlink
>
> scripts/contrib/python/generate-manifest-2.7.py | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Merged into OE-Core
Thanks
-b
--
Elizabeth Flanagan
Yocto Project
Build and Release
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-11 18:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-31 8:08 [PATCH 0/1] generate-manifest-2.7.py: replace os.popen with os.unlink Robert Yang
2012-05-31 8:08 ` [PATCH 1/1] " Robert Yang
2012-06-11 17:51 ` [PATCH 0/1] " Flanagan, Elizabeth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox