diff --git a/src/loaih/build.py b/src/loaih/build.py index 227e4f7..29bf940 100644 --- a/src/loaih/build.py +++ b/src/loaih/build.py @@ -185,7 +185,7 @@ class Build(): print(f"Found requested AppImage: {self.appimagefilename}.") - def download(self, compact = False): + def download(self, compact=False): """Downloads the contents of the URL as it was a folder.""" if self.verbose: @@ -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.download_tarballs = [] - self.download_tarballs.extend(self.tarballs[0]) # Issue #5: manage a limited number of downloads and not the full set. if compact: @@ -219,7 +218,7 @@ class Build(): # Create and change directory to the download location os.makedirs(self.download_path, exist_ok = True) 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 os.path.exists(archive): continue