Ticket #55467: bitbucket-1.0.tcl.diff

File bitbucket-1.0.tcl.diff, 1.0 KB (added by nortcele, 6 years ago)
  • bitbucket-1.0.tcl

    old new  
    7676}
    7777
    7878proc bitbucket.setup {bb_author bb_project bb_version {bb_tag_prefix ""}} {
    79     global bitbucket.author bitbucket.homepage bitbucket.master_sites bitbucket.project bitbucket.tag_prefix bitbucket.version extract.suffix
     79    global bitbucket.author bitbucket.homepage bitbucket.master_sites bitbucket.project bitbucket.tag_prefix bitbucket.version extract.suffix PortInfo
    8080
    8181    bitbucket.author        ${bb_author}
    8282    bitbucket.project       ${bb_project}
    8383    bitbucket.version       ${bb_version}
    8484    bitbucket.tag_prefix    ${bb_tag_prefix}
    8585
    86     name                    ${bitbucket.project}
     86    if {!([info exists PortInfo(name)] && (${PortInfo(name)} ne ${bitbucket.project}))} {
     87        name                ${bitbucket.project}
     88    }
    8789    version                 ${bitbucket.version}
    8890    homepage                ${bitbucket.homepage}
    8991    hg.url                  ${bitbucket.homepage}