From: Arkadiusz Miƛkiewicz Date: Sun, 17 Feb 2013 17:42:58 +0000 (+0100) Subject: If link ends up with at least 2 digit version directory then we check for links insid... X-Git-Tag: auto/th/rpm-build-tools-4.5-8~30 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=9291db88fff13a61a29cf5a31c21ead5eef65424;p=packages%2Frpm-build-tools.git If link ends up with at least 2 digit version directory then we check for links inside that directory, too (catches phonon-backend-vlc.spec or other kde stuff). --- diff --git a/pldnotify.awk b/pldnotify.awk index 998488c..9d38d00 100755 --- a/pldnotify.awk +++ b/pldnotify.awk @@ -378,7 +378,12 @@ if (USE_PERL) { continue } - retval = (retval " " link) + # link ends with at least 2 digit version + mlink = "" + if (link ~ /^.*\/[0-9\.]+[0-9]\/$/) + mlink = get_links(link) + + retval = (retval " " link " " mlink) d("href(\"\"): " link) } else if (lowerodp ~ /href=[ \t]*'[^']*'/) { sub(/[hH][rR][eE][fF]=[ \t]*'/,"href='",odp)