Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extrapkg
diff options
context:
space:
mode:
Diffstat (limited to 'extrapkg')
-rwxr-xr-xextrapkg6
1 files changed, 6 insertions, 0 deletions
diff --git a/extrapkg b/extrapkg
index 58c6095..36103b9 100755
--- a/extrapkg
+++ b/extrapkg
@@ -46,6 +46,12 @@ fi
if [ "$repo" != "community" ]; then
scp $pkgfile archlinux.org:staging/$repo/add
+ if [ "$(md5sum $pkgfile | cut -d' ' -f1)" != "$(ssh archlinux.org md5sum staging/${repo}/add/$pkgfile | cut -d' ' -f1)" ]; then
+ echo "File got corrupted during upload, cancelled."
+ exit 1
+ else
+ echo "File integrity okay."
+ fi
else
if [ ! -f ~/.tupkg ]; then
echo "Must configure tupkg via ~/.tupkg, cancelled"