mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
[fix] resetting some configuration fields during initialization
This commit is contained in:
@@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
## [0.9.5] 2020
|
## [0.9.5] 2020
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
|
- resetting some configuration fields during initialization
|
||||||
- Arch
|
- Arch
|
||||||
- not checking if **pacman-mirrors** is available before starting to download repository packages (when multi-threaded download is enabled) [#117](https://github.com/vinifmor/bauh/issues/117)
|
- not checking if **pacman-mirrors** is available before starting to download repository packages (when multi-threaded download is enabled) [#117](https://github.com/vinifmor/bauh/issues/117)
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import collections
|
|||||||
|
|
||||||
def deep_update(source: dict, overrides: dict):
|
def deep_update(source: dict, overrides: dict):
|
||||||
for key, value in overrides.items():
|
for key, value in overrides.items():
|
||||||
if isinstance(value, collections.Mapping) and value:
|
if isinstance(value, dict):
|
||||||
returned = deep_update(source.get(key, {}), value)
|
returned = deep_update(source.get(key, {}), value)
|
||||||
source[key] = returned
|
source[key] = returned
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user