mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 21:44:16 +02:00
improving Arch distro checking
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.6.2] 2019-09-
|
||||
### Improvements
|
||||
- Update notifications showing the number of updates by type as well
|
||||
- Improving Arch distro checking
|
||||
|
||||
### Fixes
|
||||
- Update-check daemon not showing notifications
|
||||
|
||||
@@ -32,7 +32,6 @@ class ApplicationContext:
|
||||
self.cache_factory = cache_factory
|
||||
self.disk_loader_factory = disk_loader_factory
|
||||
self.logger = logger
|
||||
self.linux_distro = platform.linux_distribution()
|
||||
self.file_downloader = file_downloader
|
||||
self.arch_x86_64 = sys.maxsize > 2**32
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class ArchManager(SoftwareManager):
|
||||
self.comp_optimizer = ArchCompilationOptimizer(context.logger)
|
||||
self.logger = context.logger
|
||||
self.enabled = True
|
||||
self.arch_distro = self.context.linux_distro[0].lower() == 'arch'
|
||||
self.arch_distro = os.path.exists('/etc/arch-release')
|
||||
|
||||
def _upgrade_search_result(self, apidata: dict, installed_pkgs: dict, downgrade_enabled: bool, res: SearchResult, disk_loader: DiskCacheLoader):
|
||||
app = self.mapper.map_api_data(apidata, installed_pkgs['not_signed'])
|
||||
|
||||
Reference in New Issue
Block a user