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

commit 34ea613f0bfaabdfc91f34677d91a5d36747881d
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Sun Nov 11 18:43:20 2007 +0100

util.sh: add _F_archive_nosort to get back the good old Flasttar (no sorting)

diff --git a/source/include/util.sh b/source/include/util.sh
index b926679..73f2220 100644
--- a/source/include/util.sh
+++ b/source/include/util.sh
@@ -24,6 +24,7 @@
#
# == OPTIONS
# * _F_archive_name (defaults to $pkgname)
+# * _F_archive_nosort (defaults to no, so sorting is enabled by default)
# * _F_cd_path (defaults to $_F_archive_name$Fpkgversep$pkgver$pkgextraver)
# * _F_conf_configure (defaults to ./configure)
# * _F_conf_perl_pipefrom: if set, pipe the output of this command in Fconf()
@@ -806,7 +807,11 @@ Flastarchive() {
if [ -z "$_F_archive_name" ]; then
_F_archive_name="$pkgname"
fi
-       sed -n "s/.*$_F_archive_name$Fpkgversep\(.*\)\($1\).*/\1/p" | Fsort | 
tail -n1
+       if [ -z "$_F_archive_nosort" ]; then
+               sed -n "s/.*$_F_archive_name$Fpkgversep\(.*\)\($1\).*/\1/p" | 
Fsort | tail -n1
+       else
+               sed -n "s/.*$_F_archive_name$Fpkgversep\(.*\)\($1\).*/\1/p" | 
tail -n1
+       fi
}

###
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to