Ticket #20900: googlecode-livecheck-name.patch

File googlecode-livecheck-name.patch, 753 bytes (added by 0xced (Cédric Luthi), 15 years ago)
  • dports/_resources/port1.0/livecheck/googlecode.tcl

     
    22#
    33# This file contains the defaults for googlecode.
    44
    5 if {$has_homepage && [regexp {^http://code.google.com/p/([^/]+)} $homepage _ tag]
    6     && ${livecheck.name} eq "default"} {
     5if {$has_homepage && ${livecheck.name} eq "default"
     6    && ([regexp {^http://code.google.com/p/([^/]+)} $homepage _ tag]
     7        || [regexp {^http://(.*).googlecode.com} $homepage _ tag])} {
    78        set livecheck.name $tag
    89}
    910if {!$has_homepage || ${livecheck.url} eq ${homepage}} {