Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/get-package-updates
diff options
context:
space:
mode:
Diffstat (limited to 'bin/get-package-updates')
-rwxr-xr-xbin/get-package-updates10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index 8c692a6..b33bdf6 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -495,11 +495,11 @@ echo 'Done - mark decisions as final.'
# save blacklist into database
printf 'CREATE TEMPORARY TABLE `blacklist` (`arch` VARCHAR(16), `pkgbase` VARCHAR(64), `reason` TEXT);\n'
git -C "${repo_paths__archlinux32}" archive "${new_repo_revisions__archlinux32}" -- 'blacklist' | \
- tar -Ox 'blacklist' | \
- sed -n '
- s/^\(\S\+\)\s\+\(\S\+\)\s*#\s*/\1 \2 /
- T
- p
+ tar -x --to-command 'sed "s@^@$TAR_FILENAME @"' 'blacklist' | \
+ sed '
+ s@^blacklist/\([^/[:space:]]\+\)/\S\+/\([^/[:space:]]\+\) @\1 \2 @
+ t
+ d
' | \
while read -r arch pkgbase reason; do
printf '(from_base64("%s"),from_base64("%s"),from_base64("%s")),\n' \