[packages/rpm-build-tools] If link ends up with at least 2 digit version directory then we check for links inside that director

arekm arekm at pld-linux.org
Sun Feb 17 18:43:03 CET 2013


commit 9291db88fff13a61a29cf5a31c21ead5eef65424
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Feb 17 18:42:58 2013 +0100

    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).

 pldnotify.awk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
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)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/9291db88fff13a61a29cf5a31c21ead5eef65424



More information about the pld-cvs-commit mailing list