mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 09:24:16 +02:00
[fix][arch] error when building AUR packages with extensions different from .tar.xz
This commit is contained in:
@@ -72,6 +72,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
- Arch / AUR:
|
||||
- sorting algorithm was providing wrong results for some cases
|
||||
- not caching data about packages with no desktop entry files
|
||||
- error output when was not able to optimize the **makepkg.conf** [#84](https://github.com/vinifmor/bauh/issues/84)
|
||||
- error when building AUR packages with extensions different from .tar.xz [#84](https://github.com/vinifmor/bauh/issues/84)
|
||||
|
||||
### Settings
|
||||
- Default
|
||||
|
||||
@@ -1198,10 +1198,10 @@ class ArchManager(SoftwareManager):
|
||||
self._update_progress(context, 65)
|
||||
|
||||
if pkgbuilt:
|
||||
gen_file = [fname for root, dirs, files in os.walk(context.build_dir) for fname in files if re.match(r'^{}-.+\.tar\.xz'.format(context.name), fname)]
|
||||
gen_file = [fname for root, dirs, files in os.walk(context.build_dir) for fname in files if re.match(r'^{}-.+\.tar\.(xz|ztd)'.format(context.name), fname)]
|
||||
|
||||
if not gen_file:
|
||||
context.watcher.print('Could not find generated .tar.xz file. Aborting...')
|
||||
context.watcher.print('Could not find the built package. Aborting...')
|
||||
return False
|
||||
|
||||
context.install_file = '{}/{}'.format(context.project_dir, gen_file[0])
|
||||
|
||||
Reference in New Issue
Block a user