Ticket #24542: port_sourceforge_mirror_subdir.patch

File port_sourceforge_mirror_subdir.patch, 1.2 KB (added by hashar@…, 15 years ago)

livecheck should honor mirror_subdir

  • port1.0/portlivecheck.tcl

    old new  
    6565    global livecheck.url livecheck.type livecheck.md5 livecheck.regex livecheck.name livecheck.distname livecheck.version
    6666    global fetch.user fetch.password fetch.use_epsv fetch.ignore_sslcert
    6767    global homepage portpath workpath
    68     global master_sites name distfiles
     68    global master_sites master_sites.mirror_subdir name distfiles
    6969
    7070    set updated 0
    7171    set updated_version "unknown"
    7272    set has_master_sites [info exists master_sites]
     73    set has_master_sites_subdir [info exists master_sites.mirror_subdir]
    7374    set has_homepage [info exists homepage]
    7475
    7576    set tempfile [mktemp "/tmp/mports.livecheck.XXXXXXXX"]
     
    129130            }
    130131        }
    131132    }
     133    if {$has_master_sites_subdir} {
     134        set livecheck.name ${master_sites.mirror_subdir}
     135    }
    132136    if {[lsearch -exact [split $available_types "|"] ${livecheck.type}] != -1} {
    133137        # Load the defaults from _resources/port1.0/livecheck/${livecheck.type}.tcl.
    134138        set defaults_file "$types_dir/${livecheck.type}.tcl"