Fixing partial downloads.
This commit is contained in:
parent
4de4f911d2
commit
3c7edcfe09
|
@ -208,7 +208,6 @@ class Build():
|
||||||
self.tarballs = [ x for x in loaih.match_xpath(self.url, "//td/a/text()") if x.endswith('tar.gz') and 'deb' in x ]
|
self.tarballs = [ x for x in loaih.match_xpath(self.url, "//td/a/text()") if x.endswith('tar.gz') and 'deb' in x ]
|
||||||
|
|
||||||
self.download_tarballs = []
|
self.download_tarballs = []
|
||||||
self.download_tarballs.extend(self.tarballs[0])
|
|
||||||
|
|
||||||
# Issue #5: manage a limited number of downloads and not the full set.
|
# Issue #5: manage a limited number of downloads and not the full set.
|
||||||
if compact:
|
if compact:
|
||||||
|
@ -219,7 +218,7 @@ class Build():
|
||||||
# Create and change directory to the download location
|
# Create and change directory to the download location
|
||||||
os.makedirs(self.download_path, exist_ok = True)
|
os.makedirs(self.download_path, exist_ok = True)
|
||||||
os.chdir(self.download_path)
|
os.chdir(self.download_path)
|
||||||
for archive in self.tarballs:
|
for archive in self.download_tarballs:
|
||||||
# If the archive is already there, do not do anything.
|
# If the archive is already there, do not do anything.
|
||||||
if os.path.exists(archive):
|
if os.path.exists(archive):
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue