package bbclass: drop ret = 0 check for bb.copyfile since it will return either False...
authorKoen Kooi <koen@openembedded.org>
Fri, 20 Nov 2009 10:14:45 +0000 (11:14 +0100)
committerKoen Kooi <koen@openembedded.org>
Fri, 20 Nov 2009 10:14:45 +0000 (11:14 +0100)
* Yes, I have files that claim to be from 19700101 :)

classes/package.bbclass

index 008eca5..bb81f33 100644 (file)
@@ -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