Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=wipv.git;a=commitdiff;h=0224af3a4aaf255a8bbc87dc4cf46a32d38227e5

commit 0224af3a4aaf255a8bbc87dc4cf46a32d38227e5
Author: Michel Hermier <[email protected]>
Date:   Thu Jul 8 08:52:28 2010 +0200

util.sh

* Flastarchive change '|' to ':' subtitution character. Using '|' was a
bad idea since it conflicts with the alternate matching operator.
AFAIK ':' is not used as a matching operator and is very unlikely to
happen as a path character, so it might be the saffiest in the end.

diff --git a/source/include/util.sh b/source/include/util.sh
index 6c1c62d..48dfc8c 100644
--- a/source/include/util.sh
+++ b/source/include/util.sh
@@ -1062,10 +1062,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
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to