From aa667986178ed2d1775fc2149ba39023a733533b Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 24 Sep 2010 21:19:52 +0200 Subject: [PATCH] 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 and absolute URL, just replacing $_F_archive_name with /$_F_archive_name will be enough for this. --- source/include/util.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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 -- 1.7.2.1