summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-03-26 12:25:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-03-27 13:40:31 +0000
commit372a9c2d5662360dffcdd0214c73faeeeb7b2040 (patch)
treea6017dc4547342b7899f6f20ec11cfcf1ccfd8a3 /bitbake
parentf976a7d4fba6e432c48e2534b70d01dc36b6702f (diff)
downloadpoky-372a9c2d5662360dffcdd0214c73faeeeb7b2040.tar.gz
bitbake: fetch2/wget: don't conditionalise --continue
If the target file exists, we pass --continue so that wget will try to resume the download instead of starting from the beginning. However if the file doesn't exist --continue has no effect, so there's no need to conditionalise the use of the argument. (Bitbake rev: a5ee50d4d2b2e6c00abe1551382afd9799345dbf) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/wget.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index df3e649312..ee7afd3fda 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -122,12 +122,7 @@ class Wget(FetchMethod):
122 fetchcmd += " --user=%s --password=%s" % (ud.user, ud.pswd) 122 fetchcmd += " --user=%s --password=%s" % (ud.user, ud.pswd)
123 123
124 uri = ud.url.split(";")[0] 124 uri = ud.url.split(";")[0]
125 if os.path.exists(ud.localpath): 125 fetchcmd += " -c -P " + dldir + " '" + uri + "'"
126 # file exists, but we didnt complete it.. trying again..
127 fetchcmd += " -c -P " + dldir + " '" + uri + "'"
128 else:
129 fetchcmd += " -P " + dldir + " '" + uri + "'"
130
131 self._runwget(ud, d, fetchcmd, False) 126 self._runwget(ud, d, fetchcmd, False)
132 127
133 # Sanity check since wget can pretend it succeed when it didn't 128 # Sanity check since wget can pretend it succeed when it didn't