Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=0d7929231851fc4dc02acce396fcce9cbaad674f

commit 0d7929231851fc4dc02acce396fcce9cbaad674f
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Fri Sep 24 21:19:52 2010 +0200

Flastarchive: filter out random package name prefixes

Example: If _F_archive_name is anyremote, we don't want to see
kanyramite and ganyremote. Given that lynx always outputs an absolute
URL, just replacing $_F_archive_name with /$_F_archive_name will be
enough for this.

diff --git a/source/include/util.sh b/source/include/util.sh
index e47d514..4852005 100644
--- a/source/include/util.sh
+++ b/source/include/util.sh
@@ -1063,10 +1063,10 @@ Flastarchive() {
Fwcat "$1" | eval "$lynx -stdin $filter" | Flastarchive "$2"
else
if [ -z "$_F_archive_nosort" ]; then
-                       sed -n 
"s:.*$_F_archive_name$Fpkgversep\(.*\)\($1\).*:\1:p" \
+                       sed -n 
"s:.*/$_F_archive_name$Fpkgversep\(.*\)\($1\).*:\1:p" \
| Fsort | tail -n1 | Fsanitizeversion
else
-                       sed -n 
"s:.*$_F_archive_name$Fpkgversep\(.*\)\($1\).*:\1:p" \
+                       sed -n 
"s:.*/$_F_archive_name$Fpkgversep\(.*\)\($1\).*:\1:p" \
| tail -n1 | Fsanitizeversion
fi
fi
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to