Ignore:
Timestamp:
Oct 23, 2014, 4:02:43 AM (5 years ago)
Author:
khindenburg@…
Message:

livecheck: set type to "none" when $master_sites is not set or empty #45572

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/livecheck/master-sites.tcl

    r127157 r127212  
    22#
    33# This file contains the livecheck defaults for using port's master_sites.
     4
     5set livecheck.type "regex"
    46
    57if {${livecheck.name} eq "default"} {
     
    1012}
    1113if {!$has_homepage || ${livecheck.url} eq ${homepage}} {
    12     set livecheck.url [lindex ${master_sites} 0]
     14    if {![info exists master_sites] || [llength ${master_sites}] == 0} {
     15        set livecheck.type "none"
     16    } else {
     17        set livecheck.url [lindex ${master_sites} 0]
     18    }
    1319}
    1420if {${livecheck.regex} eq ""} {
    1521    set livecheck.regex [list "[quotemeta ${livecheck.distname}]-(\\d+(?:\\.\\d+)*)"]
    1622}
    17 set livecheck.type "regex"
Note: See TracChangeset for help on using the changeset viewer.