diff options
author | Erich Eckner <git@eckner.net> | 2017-10-10 13:21:18 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-10-10 13:21:18 +0200 |
commit | 03e7feb9d80474424b5fd3d84b7bfe251e42a766 (patch) | |
tree | 6bb10786c68708bb49105615206498cc9ec34f38 /bin | |
parent | c43affacd3c6d14264020dbe849c36dce3c9f80a (diff) | |
download | builder-03e7feb9d80474424b5fd3d84b7bfe251e42a766.tar.xz |
bin/get-package-updates: use new revisions instead of old ones for checking if package exists
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/get-package-updates | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates index 237c779..dea542f 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -191,24 +191,24 @@ done | \ while read -r mode package git_revision repository; do if [ "${mode}" = 'D' ]; then # deleted PKGBUILD - git_revision=$(cat "${work_dir}/packages32.revision") + git_revision=$(cat "${work_dir}/packages32.revision.new") found_package=false for repository in ${repo_names}; do eval 'repo_path="${repo_paths__'"${repository}"'}"' if [ "${repository}" = "archlinux32" ]; then - if git -C "${repo_path}" archive "$(cat "${work_dir}/${repository}.revision")" 2> /dev/null | \ + if git -C "${repo_path}" archive "$(cat "${work_dir}/${repository}.revision.new")" 2> /dev/null | \ tar -t 2> /dev/null | \ grep -q "$(str_to_regex "${package}")/PKGBUILD$"; then found_package=true break; fi else - if git -C "${repo_path}" archive "$(cat "${work_dir}/${repository}.revision")" -- "${package}/repos" 2> /dev/null | \ + if git -C "${repo_path}" archive "$(cat "${work_dir}/${repository}.revision.new")" -- "${package}/repos" 2> /dev/null | \ tar -t --wildcards "${package}/repos/*/PKGBUILD" 2> /dev/null | \ cut -d/ -f3 | \ grep -v 'staging\|testing\|-unstable' | \ grep -vq -- '-i686$'; then - git_revision=$(cat "${work_dir}/${repository}.revision") + git_revision=$(cat "${work_dir}/${repository}.revision.new") found_package=true break; fi |