From: jkratoch <> Date: Fri, 13 Mar 2009 21:49:36 +0000 (+0000) Subject: rpmsrclist: Fix the extension. X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=a972a9feecb5c75f7ce61fcb3f26e58f038c3d19 rpmsrclist: Fix the extension. --- diff --git a/.bashrc b/.bashrc index e8f03db..ca82719 100644 --- a/.bashrc +++ b/.bashrc @@ -348,10 +348,10 @@ function rpmsrclist cat; \ else \ if [ "$3" != - ]; then - sed "s#.*#$3/&#"; \ + sed "s#.*#$3&.rpm#"; \ else \ base="$(echo "$1"|sed 's/^\(.*\)-[^-]*-[^-]*$/\1/')"; \ - sed "s#^.*-\([^-]*\)-\([^-]*\)\.\([^.]*\)\$#http://kojipkgs.fedoraproject.org/packages/$base/\1/\2/\3/&#"; \ + sed "s#^.*-\([^-]*\)-\([^-]*\)\.\([^.]*\)\$#http://kojipkgs.fedoraproject.org/packages/$base/\1/\2/\3/&.rpm#"; \ fi; \ fi \ | sort -u