From 1f86370db80a5ce85a5850f7eb8fdb92bd812add Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 7 Jul 2009 22:44:53 +0100 Subject: bitbake: Fix wget fetcher bug when only checking URIs and the download doesn't exist Signed-off-by: Richard Purdie --- bitbake-dev/lib/bb/fetch/wget.py | 2 +- bitbake/lib/bb/fetch/wget.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitbake-dev/lib/bb/fetch/wget.py b/bitbake-dev/lib/bb/fetch/wget.py index 2a899c580..a0dca9404 100644 --- a/bitbake-dev/lib/bb/fetch/wget.py +++ b/bitbake-dev/lib/bb/fetch/wget.py @@ -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 diff --git a/bitbake/lib/bb/fetch/wget.py b/bitbake/lib/bb/fetch/wget.py index 442fc3e48..d1ae6cb65 100644 --- a/bitbake/lib/bb/fetch/wget.py +++ b/bitbake/lib/bb/fetch/wget.py @@ -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 -- cgit v1.2.3