mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[arch] fix: not caching the 'LastModified' field of installed AUR dependencies
This commit is contained in:
@@ -46,6 +46,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- AUR:
|
- AUR:
|
||||||
- build: error raised when the temporary directory does not exist (when changing the CPUs governors)
|
- build: error raised when the temporary directory does not exist (when changing the CPUs governors)
|
||||||
- date parsing when checking for updates
|
- date parsing when checking for updates
|
||||||
|
- not caching the 'LastModified' field of installed AUR dependencies (could lead to wrong display updates)
|
||||||
|
|
||||||
- Flatpak
|
- Flatpak
|
||||||
- not all selected runtime partials to upgrade are actually requested to be upgraded
|
- not all selected runtime partials to upgrade are actually requested to be upgraded
|
||||||
|
|||||||
@@ -1913,7 +1913,26 @@ class ArchManager(SoftwareManager, SettingsController):
|
|||||||
else:
|
else:
|
||||||
return repo_dep_names
|
return repo_dep_names
|
||||||
|
|
||||||
|
if aur_deps_context:
|
||||||
|
aur_deps_info = self.aur_client.get_info((c.name for c in aur_deps_context))
|
||||||
|
aur_deps_data = None
|
||||||
|
|
||||||
|
if aur_deps_info:
|
||||||
|
aur_deps_data = {data['Name']: data for data in aur_deps_info}
|
||||||
|
|
||||||
for aur_context in aur_deps_context:
|
for aur_context in aur_deps_context:
|
||||||
|
if aur_deps_data:
|
||||||
|
dep_data = aur_deps_data.get(aur_context.name)
|
||||||
|
|
||||||
|
if dep_data:
|
||||||
|
last_modified = dep_data.get('LastModified')
|
||||||
|
|
||||||
|
if last_modified and isinstance(last_modified, int):
|
||||||
|
aur_context.last_modified = last_modified
|
||||||
|
else:
|
||||||
|
self.logger.warning(f"No valid 'LastModified' field returned for AUR package "
|
||||||
|
f"'{context.name}': {last_modified}")
|
||||||
|
|
||||||
installed = self._install_from_aur(aur_context)
|
installed = self._install_from_aur(aur_context)
|
||||||
|
|
||||||
if not installed:
|
if not installed:
|
||||||
|
|||||||
Reference in New Issue
Block a user