From 087b581a5e8f3096250241fff5583980dfe23ccd Mon Sep 17 00:00:00 2001 From: Nicolas Mailhot Date: Dec 01 2009 21:02:39 +0000 Subject: repo-font-audit: defensive local url checking++ --- diff --git a/bin/repo-font-audit b/bin/repo-font-audit index cb83ae9..bb95bfe 100755 --- a/bin/repo-font-audit +++ b/bin/repo-font-audit @@ -389,7 +389,7 @@ cat "$FL.1" | while read line ; do rpm_loc=$(repoquery --repofrompath=$REPOID,$REPOURL --repoid=$REPOID \ --location "$rpm" 2>/dev/null \ | fix_url) - if $(echo "$rpm_loc" | grep -q -e '^/') ; then + if $(echo "$rpm_loc" | grep -q -e '^[\./~]') ; then ln -s "$rpm_loc" . else curl -O --silent --show-error --retry 3 --connect-timeout 10 --retry-delay 15 --url "$rpm_loc"