summaryrefslogtreecommitdiff
path: root/liste-verfuegbare-Versionen
diff options
context:
space:
mode:
Diffstat (limited to 'liste-verfuegbare-Versionen')
-rwxr-xr-xliste-verfuegbare-Versionen32
1 files changed, 22 insertions, 10 deletions
diff --git a/liste-verfuegbare-Versionen b/liste-verfuegbare-Versionen
index e70b76a72..1c645e4a8 100755
--- a/liste-verfuegbare-Versionen
+++ b/liste-verfuegbare-Versionen
@@ -1,18 +1,30 @@
#!/bin/bash
-provided=$(mktemp)
+export LC_ALL=C
-if grep -qxF 'ID=arch' /etc/os-release; then
- sources=(
- /var/lib/pacman/sync
- /mnt/archlinux/archlinux
- /mnt/archlinux
+if [ $# -eq 2 ]; then
+ dist="$1"
+ arch="$2"
+else
+ dist='arch'
+ arch='x86_64'
+fi
+
+provided=$(mktemp --suffix=".${dist}.${arch}")
+
+sources=(
+ "http://pkgcache.eckner.net/${dist}/${arch}/${dist}linuxewe/${dist}linuxewe.db.tar.gz"
+)
+if [ "${dist}" = 'arch' ]; then
+ sources+=(
+ "http://pkgcache.eckner.net/${dist}/${arch}/core/core.db.tar.gz"
+ "http://pkgcache.eckner.net/${dist}/${arch}/extra/extra.db.tar.gz"
)
- sudo pacman -Sy >/dev/null || exit $?
else
- sources=(
- http://pkgcache.eckner.net/arch/x86_64/core/core.db.tar.gz
- http://pkgcache.eckner.net/arch/x86_64/extra/extra.db.tar.gz
+ sources+=(
+ "http://pkgcache.eckner.net/${dist}/${arch}/system/system.db.tar.gz"
+ "http://pkgcache.eckner.net/${dist}/${arch}/world/world.db.tar.gz"
+ "http://pkgcache.eckner.net/${dist}/${arch}/galaxy/galaxy.db.tar.gz"
)
fi