diff options
author | Erich Eckner <git@eckner.net> | 2017-08-15 11:24:09 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-08-15 11:24:09 +0200 |
commit | 8acd9d9e955452213ee12075630f1699e699235e (patch) | |
tree | bb885a1c3a2bf591eb74222e255a99d1b7952c5f /bin | |
parent | cad4da2c1d4b2e9013a21ad128fb2527c8ae1dda (diff) | |
download | builder-8acd9d9e955452213ee12075630f1699e699235e.tar.xz |
bin/common-functions: add ugly hack to make perl-list-moreutils find its PKGBUILD
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/common-functions | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/common-functions b/bin/common-functions index 6e6aefa..f721614 100755 --- a/bin/common-functions +++ b/bin/common-functions @@ -17,13 +17,19 @@ find_pkgbuilds() { local repo_path eval 'repo_path="${repo_paths__'"${git_repository}"'}"' + # TODO: remove, when FS#54696 closed + local _perl_list_moreutils_repair_flag + if [ "${package}" = 'perl-list-moreutils' ]; then + _perl_list_moreutils_repair_flag='-r' + fi + PKGBUILD=$( git -C "${repo_path}" archive "${git_revision}" -- "${package}/repos/" 2> /dev/null | \ tar -t 2> /dev/null | \ grep "$(printf '^%s-.*/PKGBUILD' "$(str_to_regex "${package}/repos/${repository}")")" | \ grep -v -- '-i686/PKGBUILD$' | \ grep -v -- '[-/]\(staging\|testing\|unstable\)-[^/]\+/PKGBUILD$' | \ - sort | \ + sort ${_perl_list_moreutils_repair_flag} | \ tail -n1 ) |