summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-28 22:16:04 +0200
committerErich Eckner <git@eckner.net>2017-06-28 22:16:04 +0200
commit832fd2beebeeb31e17729ec5296fa1c2bfbdac0f (patch)
tree4e29d999c080d7562810237d064d95affedccffa
parentc93308a1979b73360712ab7322c508ad737c3bdf (diff)
downloadbuilder-832fd2beebeeb31e17729ec5296fa1c2bfbdac0f.tar.xz
bin/get-package-updates: bugfixes
-rwxr-xr-xbin/get-package-updates11
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index d28fd44..77819e6 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -147,7 +147,7 @@ for repo in ${repo_names}; do
tar -t | \
sed 's|^|A\t|'
else
- git -C "${repo_path}" diff --no-renames --name-status "${old_repo_revision}" HEAD
+ git -C "${repo_path}" diff --no-renames --name-status "${old_repo_revision}" "${new_repo_revision}"
fi
) | \
# only track changes in PKGBUILDs
@@ -157,9 +157,9 @@ for repo in ${repo_names}; do
# to the one of an original source repository
sed 's|^\(.\t\)\([^/]\+\)/\([^/]\+\)/\(.\+\)$|\2 \1\3/repos/\2-x86_64/\4|' | \
while read -r pkg_repo rest; do
- eval printf '%s %s\n' \
- "$(printf '$new_repo_revisions__%s' "$(find_git_repository_to_package_repository "${pkg_repo}")")" \
- "${rest}"
+ eval "printf '%s %s\n'" \
+ "$(printf '"$new_repo_revisions__%s"' "$(find_git_repository_to_package_repository "${pkg_repo}")")" \
+ "'${rest}'"
done
else
sed "s|^|${new_repo_revision} |"
@@ -169,7 +169,8 @@ for repo in ${repo_names}; do
grep -v -- '-i686/PKGBUILD$' | \
sed 's|^\(\S\+\) \(.\)\t\([^/]\+\)/repos/\([^/]\+\)-[^/-]\+/PKGBUILD$|\2 \3 \1 \4|' | \
# ignore staging and testing
- grep -v '\(staging\|testing\)$'
+ grep -v '\(staging\|testing\)$' | \
+ cat
done | \
sort -u | \
while read -r mode package git_revision repository; do