[arch-dev-public] Integrity check in devtools
This is a little patch to check the integrity of the uploaded file after uploading it. It will avoid problems like the ones with kernel26 or openoffice-base recently. I don't have time to build new devtools packages now, so I'll do it later if nobody has done it already. You can however apply the patch to your local extrapkg and test it. --- extrapkg 2007-09-25 20:45:17.000000000 +0200 +++ /mnt/arch32/usr/bin/extrapkg 2007-09-19 21:37:52.000000000 +0200 @@ -46,6 +46,12 @@ 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"
participants (1)
-
Thomas Bächler