From dfe765450b3bab43d61ea27bcfacbcc2fa7f537f Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Tue, 6 Apr 2021 09:20:25 -0300 Subject: [PATCH] [arch] fix -> randomly crashing when solving repository packages dependencies --- CHANGELOG.md | 3 ++- bauh/gems/arch/dependencies.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d8c3656..e6d3e1bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Fixes - Arch - not skipping dependency checking when the user opts to proceed with a transaction that would break other packages - - AUR: not restoring the CPUs to previous scaling governors after the package is built when optimizations are on + - AUR: not restoring the CPUs to previous scaling governors after the package is built when optimizations are on + - randomly crashing when solving repository packages dependencies (RuntimeError: dictionary changed size during iteration) ## [0.9.15] 2021-03-03 ### Improvements diff --git a/bauh/gems/arch/dependencies.py b/bauh/gems/arch/dependencies.py index 1e8180c0..66ebe8ad 100644 --- a/bauh/gems/arch/dependencies.py +++ b/bauh/gems/arch/dependencies.py @@ -393,7 +393,7 @@ class DependenciesAnalyser: for t in aur_threads: t.join() - missing_subdeps = self.map_missing_deps(pkgs_data=deps_data, provided_map=provided_map, aur_index=aur_index, + missing_subdeps = self.map_missing_deps(pkgs_data={**deps_data}, provided_map=provided_map, aur_index=aur_index, deps_checked=deps_checked, sort=False, deps_data=deps_data, watcher=watcher, remote_provided_map=remote_provided_map,