Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=fb0599491aed96d7cb661fd9765bc32df9d4fedd
commit fb0599491aed96d7cb661fd9765bc32df9d4fedd Author: crazy <[email protected]> Date: Wed Feb 25 04:01:25 2009 +0100 kde.sh * fix up2date for kde-{look,apps}.org * ( ohhh yeah this one is *somewhat* weird =) ) diff --git a/source/include/kde.sh b/source/include/kde.sh index e8286ee..e612eb1 100644 --- a/source/include/kde.sh +++ b/source/include/kde.sh @@ -110,12 +110,12 @@ fi if [ ! -z "$_F_kde_id" ]; then url="http://www.kde-apps.org/content/show.php?content=$_F_kde_id" - up2date="lynx -dump -nolist $url|grep -m1 'Version:'|sed 's/.*: *\(.*\)$/\1/'" + up2date="lynx -dump $url|sed -n '/\[.*\] Content/!d;n;p;n;p;n;p;n;p' | sed 's/^[ \t]*//;s/[ \t]*$//'|grep '^[0-9]'" fi if [ ! -z "$_F_kde_id2" ]; then url="http://www.kde-look.org/content/show.php?content=$_F_kde_id2" - up2date="lynx -dump -nolist $url|grep -m1 'Version:'|sed 's/.*: *\(.*\)$/\1/'" + up2date="lynx -dump $url|sed -n '/\[.*\] Content/!d;n;p;n;p;n;p;n;p' | sed 's/^[ \t]*//;s/[ \t]*$//'|grep '^[0-9]'" fi ### _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
