From 0fb2614d9279c3d109343e8fd81992b7be3672eb Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Wed, 3 Feb 2016 18:44:50 +0100 Subject: [PATCH] Old locinst : now working again --- scripts/locinst.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/locinst.sh b/scripts/locinst.sh index a01141a..cff28a1 100755 --- a/scripts/locinst.sh +++ b/scripts/locinst.sh @@ -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 $?