[oe-commits] Koen Kooi : package bbclass: drop ret = 0 check for bb. copyfile since it will return either False or the new mtime
git version control
git at git.openembedded.org
Fri Nov 20 12:47:21 UTC 2009
Module: openembedded.git
Branch: martin_jansa/srcpv
Commit: 9fd535b0de736044013231d1c6d576f07d0dcf93
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=9fd535b0de736044013231d1c6d576f07d0dcf93
Author: Koen Kooi <koen at openembedded.org>
Date: Fri Nov 20 11:14:45 2009 +0100
package bbclass: drop ret = 0 check for bb.copyfile since it will return either False or the new mtime
* Yes, I have files that claim to be from 19700101 :)
---
classes/package.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/classes/package.bbclass b/classes/package.bbclass
index 008eca5..bb81f33 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -427,7 +427,7 @@ python populate_packages () {
dpath = os.path.dirname(fpath)
bb.mkdirhier(dpath)
ret = bb.copyfile(file, fpath)
- if ret is False or ret == 0:
+ if ret is False:
raise bb.build.FuncFailed("File population failed when copying %s to %s" % (file, fpath))
if pkg == main_pkg and main_is_empty:
main_is_empty = 0
More information about the Openembedded-commits
mailing list