]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- fixed problems when href had no "" after it (see gfcc.spec and it's
authorSebastian Zagrodzki <sebek@zagrodzki.net>
Wed, 2 Aug 2000 18:53:22 +0000 (18:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  source urls)

Changed files:
    pldnotify.awk -> 1.20

pldnotify.awk

index 2757ee14153b3b97aa801603fc3f1d6065a96c0e..8a65dbde4f5c849fec043405c86d2dfbcf971565 100644 (file)
@@ -89,12 +89,18 @@ function get_links(url,     errno,link,oneline,retval,odp,tmpfile) {
                                newurl=substr(ramka,RSTART+5,RLENGTH-6)
                                if (DEBUG) print "Ramka: " newurl
                                retval=(retval " " get_links(newurl))
-                       } else {
+                       } else if (tolower(odp) ~ /href="[^"]+"/) {
                                match(tolower(odp),/href="[^"]+"/)
                                link=substr(odp,RSTART,RLENGTH)
                                odp=substr(odp,RSTART+RLENGTH)
                                link=substr(link,7,length(link)-7)
                                retval=(retval " " link)
+                       } else {
+                               match(tolower(odp),/href=[^ \t>]+/)
+                               link=substr(odp,RSTART,RLENGTH)
+                               odp=substr(odp,RSTART+RLENGTH)
+                               link=substr(link,6,length(link)-5)
+                               retval=(retval " " link)
                        }
                }
        } else {
@@ -167,6 +173,7 @@ function process_source(number,lurl,name,version) {
        if( odp ~ "ERROR: ") {
                print name "(" number ") " odp
        } else {
+               if (DEBUG) print "Sciagnieta strona"
                c=split(odp,linki)
                for (nr=1; nr<=c; nr++) {
                        addr=linki[nr]
This page took 0.084777 seconds and 4 git commands to generate.