Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/common-functions
diff options
context:
space:
mode:
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