[arch] fix: not upgrading a package when a dependent package relies on a specific version with epoch

This commit is contained in:
Vinicius Moreira
2022-01-24 15:42:35 -03:00
parent 131b787108
commit 82f140f2e1
2 changed files with 6 additions and 10 deletions

View File

@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [0.9.26] ## [0.9.26]
### Fixes
- Arch
- not upgrading a package when a dependent package relies on a specific version with epoch (e.g: alsa-plugins 1:1.2.6-1 would not be upgraded to 1:1.2.6-2 because lib32-alsa-plugins relies on 1:1.2.6)
### UI ### UI
- new logo by [DN-debug](https://github.com/DN-debug) - new logo by [DN-debug](https://github.com/DN-debug)
- new dark theme (**knight**) based on Kimi-dark gtk by [DN-debug](https://github.com/DN-debug) - new dark theme (**knight**) based on Kimi-dark gtk by [DN-debug](https://github.com/DN-debug)

View File

@@ -882,22 +882,14 @@ def map_required_dependencies(*names: str) -> Dict[str, Set[str]]:
deps = set() deps = set()
if val != 'None': if val != 'None':
if ':' in val: deps.update((dep for dep in val.split(' ') if dep))
dep_info = val.split(':')
deps.add(dep_info[0].strip())
else:
deps.update({dep.strip() for dep in val.split(' ') if dep})
elif latest_name and deps is not None: elif latest_name and deps is not None:
res[latest_name] = deps res[latest_name] = deps
latest_name, deps, latest_field = None, None, None latest_name, deps, latest_field = None, None, None
elif latest_name and deps is not None: elif latest_name and deps is not None:
if ':' in l: deps.update((dep for dep in l.split(' ') if dep))
dep_info = l.split(':')
deps.add(dep_info[0].strip())
else:
deps.update({dep.strip() for dep in l.split(' ') if dep})
return res return res