Old locinst : now working again

crash2
Geoffrey Frogeye 2016-02-03 18:44:50 +01:00
parent 64e06be91c
commit 0fb2614d92
1 changed files with 4 additions and 4 deletions

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 $?