[arch] fix -> Downloading some AUR packages sources twice when multi-threaded download is enabled

This commit is contained in:
Vinicius Moreira
2020-08-04 12:27:33 -03:00
parent ec614ee849
commit d288c30484
2 changed files with 2 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Fixes
- Arch
- not able to upgrade a package that explicitly defines a conflict with itself (e.g: grub)
- Downloading some AUR packages sources twice when multi-threaded download is enabled
- UI
- crashing when nothing can be upgraded

View File

@@ -1487,7 +1487,7 @@ class ArchManager(SoftwareManager):
if len(fdata) > 1:
args.update({'file_url': fdata[1], 'output_path': fdata[0]})
else:
args.update({'file_url': fdata[0], 'output_path': None})
args.update({'file_url': fdata[0], 'output_path': fdata[0].split('/')[-1]})
if not self.context.file_downloader.download(**args):
watcher.print('Could not download source file {}'.format(args['file_url']))