summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-05-23 15:23:14 +0200
committerErich Eckner <git@eckner.net>2017-05-23 15:23:14 +0200
commit4c52d117bb5057c010ed07e92be91f9230656979 (patch)
tree5fe8b3a7a4ba52eb7da2802b242a8da8290e0543 /core
parent05724639323b2d21bcc5e156fc1f69dc311eb54d (diff)
downloadpackages-4c52d117bb5057c010ed07e92be91f9230656979.tar.xz
pacman-mirrorlist: automate mirror list update procedure, add mirror.archlinux32.oss
Diffstat (limited to 'core')
-rw-r--r--core/pacman-mirrorlist/PKGBUILD6
-rw-r--r--core/pacman-mirrorlist/mirrorlist1
-rwxr-xr-xcore/pacman-mirrorlist/update-list13
3 files changed, 17 insertions, 3 deletions
diff --git a/core/pacman-mirrorlist/PKGBUILD b/core/pacman-mirrorlist/PKGBUILD
index 464ce311..7bd5201d 100644
--- a/core/pacman-mirrorlist/PKGBUILD
+++ b/core/pacman-mirrorlist/PKGBUILD
@@ -1,3 +1,3 @@
-pkgver=20170505
-sha256sums=('7f08a25e5980407040beb73a9a1512519a175b2b01c734b814a6b6182b57aed3')
-md5sums=('a1a2d7deb8678e4b21c91374ec8b3428')
+pkgver=20170523
+sha256sums=('3fe4c40abc3c2f6951a92dd37ee5414ed7a26e258795af0a3f3bf12dbcadc24f')
+md5sums=('208c40ee1b9c99ffbd582ee9e4b59de3')
diff --git a/core/pacman-mirrorlist/mirrorlist b/core/pacman-mirrorlist/mirrorlist
index ea98600d..956d4dbd 100644
--- a/core/pacman-mirrorlist/mirrorlist
+++ b/core/pacman-mirrorlist/mirrorlist
@@ -4,4 +4,5 @@
##
# Server = https://mirror.archlinux32.org/$arch/$repo
+# Server = http://mirror.archlinux32.oss/$arch/$repo
# Server = http://32.arlm.tyzoid.com/$arch/$repo
diff --git a/core/pacman-mirrorlist/update-list b/core/pacman-mirrorlist/update-list
new file mode 100755
index 00000000..f1fb30f2
--- /dev/null
+++ b/core/pacman-mirrorlist/update-list
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+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