Old locinst : now working again

This commit is contained in:
Geoffrey Frogeye 2016-02-03 18:44:50 +01:00
parent 64e06be91c
commit 0fb2614d92

View file

@ -44,16 +44,16 @@ function error { # str
function locinst_arch {
function getPageLink { # package, arch, repo
echo "https://www.archlinux.org/packages/$3/$2/$1/"
}
function getDlLink { # package, arch, repo
echo "$(getPageLink $1 $2 $3)download/"
}
function findPackage { # package
function getPageLink { # package, arch, repo
echo "https://www.archlinux.org/packages/$3/$2/$1/"
}
function testLink { # link
wget -q --max-redirect 0 "$1" -O /dev/null
return $?