[fix][arch] error when building AUR packages with extensions different from .tar.xz

This commit is contained in:
Vinícius Moreira
2020-04-14 14:38:14 -03:00
parent e4f8aa88c4
commit 759162004d
2 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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])