summaryrefslogtreecommitdiff
path: root/bin/common-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-07-05 00:10:34 +0200
committerErich Eckner <git@eckner.net>2017-07-05 00:10:34 +0200
commit7388855e8d4259a804efad13434ab502713c21c2 (patch)
treeffdb6028a11d4d237f75332872bfdb56099989cb /bin/common-functions
parentb8df7a8b87508d851b46c0078b73727e2c346190 (diff)
downloadbuilder-7388855e8d4259a804efad13434ab502713c21c2.tar.xz
bin/common-functions: find_repository_with_commit now knows "build-support"
Diffstat (limited to 'bin/common-functions')
-rwxr-xr-xbin/common-functions24
1 files changed, 13 insertions, 11 deletions
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