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

commit 9e3eb32768e2f342f51d10c5096e7bd5025f1abf
Author: Michel Hermier <herm...@frugalware.org>
Date:   Tue May 19 23:54:32 2009 +0200

util.sh

* Make Flastarchive only process real packages links by default
(instead of the whole html and links).
* Introduced var _F_archive_nolinksonly so that it also process the html
content.

diff --git a/source/include/util.sh b/source/include/util.sh
index 9f7b458..c8e103b 100644
--- a/source/include/util.sh
+++ b/source/include/util.sh
@@ -24,6 +24,8 @@
#
# == OPTIONS
# * _F_archive_name (defaults to $pkgname)
+# * _F_archive_nolinksonly (defaults to no, so that only links are proceeded by
+# default)
# * _F_archive_nosort (defaults to no, so sorting is enabled by default)
# * _F_archive_grep (defaults to empty): grep for a regexp before
# searching for the version
@@ -890,6 +892,11 @@ Fsanitizeversion() {
###
Flastarchive() {
local lynx="lynx -dump"
+
+       if [ -z "$_F_archive_nolinksonly" ]; then
+               lynx="$lynx -listonly"
+       fi
+
if [ -z "$_F_archive_name" ]; then
_F_archive_name="$pkgname"
fi
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to