index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-06-10 18:44:42 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-06-10 18:44:42 +0200 |
commit | 991bbfb901f3ba0bb0859ed3f8e71c6446fa02c4 (patch) | |
tree | 41d9875e4c1886818b329057f142236d40998804 /core/pacman-mirrorlist/update-list | |
parent | 8d08020a244a0f4cf1b0a682fcd9e488dd660b59 (diff) |
-rwxr-xr-x | core/pacman-mirrorlist/update-list | 19 |
diff --git a/core/pacman-mirrorlist/update-list b/core/pacman-mirrorlist/update-list index f1fb30f2..6da4037a 100755 --- a/core/pacman-mirrorlist/update-list +++ b/core/pacman-mirrorlist/update-list @@ -2,12 +2,13 @@ cd "${0%/*}" -printf "pkgver=%s\n" "$(date '+%Y%m%d')" > PKGBUILD -printf "sha256sums=('%s')\n" "$( - sha256sum mirrorlist | \ - awk '{print $1}' -)" >> PKGBUILD -printf "md5sums=('%s')\n" "$( - md5sum mirrorlist | \ - awk '{print $1}' -)" >> PKGBUILD +sed -i '/^[^#]/d' PKGBUILD +printf "pkgver=%s\n" "$(date '+%Y%m%d')" >> PKGBUILD +for sum_type in sha256 md5; do + printf "%ssums=('%s')\n" \ + "${sum_type}" \ + "$( + ${sum_type}sum mirrorlist | \ + awk '{print $1}' + )" >> PKGBUILD +done |