index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-07-05 00:10:34 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-07-05 00:10:34 +0200 |
commit | 7388855e8d4259a804efad13434ab502713c21c2 (patch) | |
tree | ffdb6028a11d4d237f75332872bfdb56099989cb /bin | |
parent | b8df7a8b87508d851b46c0078b73727e2c346190 (diff) |
-rwxr-xr-x | bin/common-functions | 24 |
diff --git a/bin/common-functions b/bin/common-functions index 8f223ca..9b89860 100755 --- a/bin/common-functions +++ b/bin/common-functions @@ -70,22 +70,24 @@ find_repository_with_commit() { find_git_repository_to_package_repository() { local repository + local package_repository + + package_repository="$1" + + if [ "$1" = 'build-support' ]; then + echo 'packages' + return 0 + fi for repository in ${repo_names}; do if [ "${repository}" = "archlinux32" ]; then continue fi - if [ -n "$( - ( - eval ls "$(printf '"${repo_paths__%s}"' "${repository}")/"*"/repos" | \ - grep -v ':$' | \ - sed 's|-[^-]\+$||' | \ - sort -u - echo "$1" - ) | \ - sort | \ - uniq -d - )" ]; then + if eval ls "$(printf '"${repo_paths__%s}"' "${repository}")/"*"/repos" | \ + grep -v ':$' | \ + sed 's|-[^-]\+$||' | \ + sort -u | \ + grep -qxF "${package_repository}"; then echo "${repository}" return 0 fi |