Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/pacman-mirrorlist/update-list
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-03-06 10:32:15 +0100
committerErich Eckner <git@eckner.net>2020-03-06 10:32:15 +0100
commita022dad04b35512f2b0461afa47f2604b5f9c892 (patch)
tree28f12b42f1c82348ba37ce62836e9ad9a5da0c2b /core/pacman-mirrorlist/update-list
parentf71aeb3f4a1a046e104312ae02cac226abaa024a (diff)
core/pacman-mirrorlist: set correct date in comment to not confuse others ;-)
Diffstat (limited to 'core/pacman-mirrorlist/update-list')
-rwxr-xr-xcore/pacman-mirrorlist/update-list14
1 files changed, 13 insertions, 1 deletions
diff --git a/core/pacman-mirrorlist/update-list b/core/pacman-mirrorlist/update-list
index 6da4037a..2223f9ba 100755
--- a/core/pacman-mirrorlist/update-list
+++ b/core/pacman-mirrorlist/update-list
@@ -2,7 +2,19 @@
cd "${0%/*}"
-sed -i '/^[^#]/d' PKGBUILD
+sed -i '
+ 1i ##\
+## Arch Linux repository mirrorlist for i686\
+## Generated on '"$(date +%F)"'\
+##\
+
+ 1,/^$/d
+' mirrorlist
+
+sed -i '
+ /^[^#]/d
+' PKGBUILD
+
printf "pkgver=%s\n" "$(date '+%Y%m%d')" >> PKGBUILD
for sum_type in sha256 md5; do
printf "%ssums=('%s')\n" \