From d288c30484bc7af16c81575283b302c3925de797 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Tue, 4 Aug 2020 12:27:33 -0300 Subject: [PATCH] [arch] fix -> Downloading some AUR packages sources twice when multi-threaded download is enabled --- CHANGELOG.md | 1 + bauh/gems/arch/controller.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b052b3ba..fbeaf601 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/bauh/gems/arch/controller.py b/bauh/gems/arch/controller.py index fa884ab9..752ae501 100644 --- a/bauh/gems/arch/controller.py +++ b/bauh/gems/arch/controller.py @@ -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']))