summaryrefslogtreecommitdiff
path: root/bin/get-package-updates
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-09-24 10:13:35 +0200
committerErich Eckner <git@eckner.net>2018-09-24 10:13:35 +0200
commit2822716112435d983906bd1dbc28ad8ca2e02728 (patch)
treecf8cef301a01e7519555ab642722dc9bfc604a7f /bin/get-package-updates
parent5968de28c8c3e8c0fc2ef41773f4eb1ac13c5dda (diff)
downloadbuilder-2822716112435d983906bd1dbc28ad8ca2e02728.tar.xz
bin/get-package-updates: do not print old_repo_revision in intermediate pipe
Diffstat (limited to 'bin/get-package-updates')
-rwxr-xr-xbin/get-package-updates11
1 files changed, 5 insertions, 6 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index 3d1c1e3..4f91e6d 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -326,7 +326,7 @@ trigger_rebuild_on_any_file_sed_expression=$(
printf 'A %s ' \
"${pkgbase}"
eval 'printf '"'"'%s'"'"' "${new_repo_revisions__'"${git_repository}"'}"'
- printf ' empty %s\n' \
+ printf ' %s\n' \
"${repository}"
done
# actual updates/removes
@@ -356,18 +356,17 @@ trigger_rebuild_on_any_file_sed_expression=$(
repo=$(find_git_repository_to_package_repository "${pkg_repo}")
eval 'printf '"'"'%s %s %s\n'"'" \
"$(printf '"${new_repo_revisions__%s}"' "${repo}")" \
- "$(printf '"${old_repo_revisions__%s}"' "${repo}")" \
"'${rest}'"
done
else
- sed "s|^|${new_repo_revision} ${old_repo_revision} |"
+ sed "s|^|${new_repo_revision} |"
fi | \
- grep '^\S\+ \S\+ .\s[^/]\+/repos/[^/]\+/PKGBUILD$' | \
+ grep '^\S\+ .\s[^/]\+/repos/[^/]\+/PKGBUILD$' | \
# ignore i686
grep -v -- '-i686/PKGBUILD$' | \
# ignore staging and testing
grep -v -- '[-/]\(staging\|testing\|unstable\)-[^/]\+/PKGBUILD$' | \
- sed 's|^\(\S\+ \S\+\) \(.\)\t\([^/]\+\)/repos/\([^/]\+\)-[^/-]\+/PKGBUILD$|\2 \3 \1 \4|'
+ sed 's|^\(\S\+\) \(.\)\t\([^/]\+\)/repos/\([^/]\+\)-[^/-]\+/PKGBUILD$|\2 \3 \1 \4|'
done | \
sort -u | \
sed '
@@ -380,7 +379,7 @@ trigger_rebuild_on_any_file_sed_expression=$(
sort -k1,1 | \
sed 's|^[012] ||'
} | \
- while read -r mode package git_revision _ repository; do
+ while read -r mode package git_revision repository; do
if [ "${mode}" = 'D' ]; then
# deleted PKGBUILD
# shellcheck disable=SC2154