From bfbef03c657cd15230bf36d283fb18f899fbd67f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 5 May 2017 12:36:02 +0200 Subject: bin/get-package-updates: include revision of package-modification-repository in build list (so far not compatible with get- and return-assignment) --- bin/common-functions | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'bin/common-functions') diff --git a/bin/common-functions b/bin/common-functions index d6b4858..765610c 100755 --- a/bin/common-functions +++ b/bin/common-functions @@ -29,3 +29,27 @@ find_repository_with_commit() { >&2 echo "can't find repository with commit '$1'" exit 1 } + +find_git_repository_to_package_repository() { + for repository in "${!repo_paths[@]}"; do + if [ "${repository}" == "archlinux32" ]; then + continue + fi + if [ -n "$( + ( + ls "${repo_paths["${repository}"]}/"*"/repos" | \ + grep -v ':$' | \ + sed 's|-[^-]\+$||' | \ + sort -u + echo "$1" + ) | \ + sort | \ + uniq -d + )" ]; then + echo "${repository}" + return 0 + fi + done + >&2 echo "can't find git repository with package repository '$1'" + exit 1 +} -- cgit v1.2.3-54-g00ecf