summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-10 15:13:33 +0200
committerErich Eckner <git@eckner.net>2019-07-10 15:13:33 +0200
commitc410c602fd704e786b10e31f34b91a26fda05e37 (patch)
tree1a8b43044f7a8ce48067f02aeca47b6e756ba3ac
parentcc7fc1af8e76a54125f7a51603325a7b2abf7b3b (diff)
downloadarchlinuxewe-c410c602fd704e786b10e31f34b91a26fda05e37.tar.xz
report-installed-packages.PKGBUILDpatch: do not actually send
-rw-r--r--report-installed-packages.PKGBUILDpatch24
1 files changed, 23 insertions, 1 deletions
diff --git a/report-installed-packages.PKGBUILDpatch b/report-installed-packages.PKGBUILDpatch
index 9b7a7ce94..0224d356a 100644
--- a/report-installed-packages.PKGBUILDpatch
+++ b/report-installed-packages.PKGBUILDpatch
@@ -2,5 +2,27 @@
# these packages should work
if [ "${CARCH}" = "i486" ] || [ "${CARCH}" = "i686" ] || [ "${CARCH}" = "pentium4" ]; then
- report-installed-packages archlinux-reports@eckner.net buildmaster@archlinux32.org
+ cd '/var/cache/pacman/pkg'
+ ls | \
+ sed 's|^\(.*\)-|\1 \0|' | \
+ sort -k1,1 | \
+ join -1 1 -2 1 -o 1.2 - <(
+ (
+ find '/var/lib/pacman/sync' -mindepth 1 -maxdepth 1 \
+ -name '*testing.db' \
+ -exec bsdtar -tf {} \; | \
+ sed -n '
+ /\/$/{
+ s|/$||
+ p
+ }
+ '
+ pacman -Q | \
+ tr ' ' '-'
+ ) | \
+ sort | \
+ uniq -d
+ ) | \
+ xargs -r sha512sum > \
+ #TMPDIR#/installed-packages
fi