summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-05 08:44:26 +0200
committerErich Eckner <git@eckner.net>2016-04-05 09:00:36 +0200
commit5d7fb16ca5ca05db100d74a81f1e66ed9a84ef0c (patch)
treef326ffe6eedd26b01e31f7e73f209c59261c5baa
parentd9ebf2e9c4aac420d6b2372dfbaa424392aff0da (diff)
downloadarchlinuxewe.git.save-5d7fb16ca5ca05db100d74a81f1e66ed9a84ef0c.tar.xz
Test für Kopien offizieller Pakete neu
-rwxr-xr-xarchPackagesUpdate36
1 files changed, 29 insertions, 7 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate
index b1621de7..2a98fbc0 100755
--- a/archPackagesUpdate
+++ b/archPackagesUpdate
@@ -176,14 +176,36 @@ else
paket="${pakete[${i}]}"
. ${paket}/PKGBUILD
- echo "${source}" | \
- grep -q "opensources\.eckner\.net" || \
- continue
- remSum="$(curl -o - "${source#*::}&post=sha256sum" 2> /dev/null)"
- if [ ! "${remSum}" == "${sha256sums}" ]
+
+ if echo "${source}" | grep -q "://opensources\.eckner\.net/"
+ then
+
+# one of Erich's packages
+
+ remSum="$(curl -o - "${source#*::}&post=sha256sum" 2> /dev/null)"
+ if [ ! "${remSum}" == "${sha256sums}" ]
+ then
+ >&2 echo "sha256sum von ${pkgname} stimmt nicht: ${remSum} vs. ${sha256sums}."
+ err=true
+ fi
+
+ elif echo "${source}" | grep -q "://arch\.eckner\.net/"
then
- echo "sha256sum von ${pkgname} stimmt nicht: ${remSum} vs. ${sha256sums}."
- err=true
+
+# a modified official package
+
+ offVer="$( \
+ ssh paule@jeti100 'ls '"${pkgDir}"'/*/'"${paket}"'-*.pkg.tar.xz' | \
+ xargs -n1 basename | \
+ sort -V | \
+ tail -n1 \
+ )"
+ if [ ! "${offVer}" == "${pkgname}-${pkgver}-${pkgrel}-${arch}.pkg.tar.xz" ]
+ then
+ >&2 echo "${pkgname} ist in den offiziellen Quellen aktueller: ${offVer}."
+ err=true
+ fi
+
fi
done