From: Koen Kooi Date: Fri, 20 Nov 2009 10:14:45 +0000 (+0100) Subject: package bbclass: drop ret = 0 check for bb.copyfile since it will return either False... X-Git-Tag: Release-2010-05/1~1648^2~85 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fd535b0de736044013231d1c6d576f07d0dcf93;p=openembedded.git 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 :) --- diff --git a/classes/package.bbclass b/classes/package.bbclass index 008eca5530..bb81f33b29 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