]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake: Fix wget fetcher bug when only checking URIs and the download doesn't exist
authorRichard Purdie <rpurdie@linux.intel.com>
Tue, 7 Jul 2009 21:44:53 +0000 (22:44 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 7 Jul 2009 21:44:53 +0000 (22:44 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake-dev/lib/bb/fetch/wget.py
bitbake/lib/bb/fetch/wget.py

index 2a899c5808603bf6c1b623c2909ac01fa5f26ac0..a0dca9404092670f04f43196118fa3b4d2ad07fa 100644 (file)
@@ -95,7 +95,7 @@ class Wget(Fetch):
 
             # Sanity check since wget can pretend it succeed when it didn't
             # Also, this used to happen if sourceforge sent us to the mirror page
-            if not os.path.exists(ud.localpath):
+            if not os.path.exists(ud.localpath) and not checkonly:
                 bb.msg.debug(2, bb.msg.domain.Fetcher, "The fetch command for %s returned success but %s doesn't exist?..." % (uri, ud.localpath))
                 return False
 
index 442fc3e489f795fd335063316f038fedc1272db9..d1ae6cb65fb452c7f077218e519838bbfad4812a 100644 (file)
@@ -95,7 +95,7 @@ class Wget(Fetch):
 
             # Sanity check since wget can pretend it succeed when it didn't
             # Also, this used to happen if sourceforge sent us to the mirror page
-            if not os.path.exists(ud.localpath):
+            if not os.path.exists(ud.localpath) and not checkonly:
                 bb.msg.debug(2, bb.msg.domain.Fetcher, "The fetch command for %s returned success but %s doesn't exist?..." % (uri, ud.localpath))
                 return False