From 832fd2beebeeb31e17729ec5296fa1c2bfbdac0f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 28 Jun 2017 22:16:04 +0200 Subject: bin/get-package-updates: bugfixes --- bin/get-package-updates | 11 ++++++----- 1 file 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 -- cgit v1.2.3-70-g09d2