summaryrefslogtreecommitdiff
path: root/bin/get-package-updates
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-10 13:21:18 +0200
committerErich Eckner <git@eckner.net>2017-10-10 13:21:18 +0200
commit03e7feb9d80474424b5fd3d84b7bfe251e42a766 (patch)
tree6bb10786c68708bb49105615206498cc9ec34f38 /bin/get-package-updates
parentc43affacd3c6d14264020dbe849c36dce3c9f80a (diff)
downloadbuilder-03e7feb9d80474424b5fd3d84b7bfe251e42a766.tar.xz
bin/get-package-updates: use new revisions instead of old ones for checking if package exists
Diffstat (limited to 'bin/get-package-updates')
-rwxr-xr-xbin/get-package-updates8
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