Ignore:
Timestamp:
Sep 23, 2014, 12:35:22 PM (5 years ago)
Author:
ryandesign@…
Message:

bitbucket-1.0.tcl: use eq for string comparisons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/bitbucket-1.0.tcl

    r103200 r125633  
    22# $Id$
    33#
    4 # Copyright (c) 2013 The MacPorts Project
     4# Copyright (c) 2013-2014 The MacPorts Project
    55# All rights reserved.
    66#
     
    5454
    5555    # the port writer can set bitbucket.tarball_from to "downloads" and have the URI path accordingly changed
    56     if {[string equal ${action} "set"] && $args == "downloads"} {
     56    if {[string equal ${action} "set"] && ${args} eq "downloads"} {
    5757        bitbucket.tarball_from ${args}
    5858        bitbucket.master_sites https://bitbucket.org/${bitbucket.author}/${bitbucket.project}/downloads
     
    7777
    7878    post-extract {
    79         if {![file exists ${worksrcpath}] && "standard" == ${fetch.type} && \
    80             ${master_sites} == ${bitbucket.master_sites} && [llength ${distfiles}] > 0 && \
     79        if {![file exists ${worksrcpath}] && \
     80            ${fetch.type} eq "standard" && \
     81            ${master_sites} eq ${bitbucket.master_sites} && \
     82            [llength ${distfiles}] > 0 && \
    8183            [llength [glob -nocomplain ${workpath}/*]] > 0} {
    8284            move [glob ${workpath}/*] ${worksrcpath}
     
    8486    }
    8587
    86     if {[join ${bitbucket.tag_prefix}] == "" && [regexp "^\[0-9a-f\]{9,}\$" ${bitbucket.version}]} {
     88    if {[join ${bitbucket.tag_prefix}] eq "" && \
     89        [regexp "^\[0-9a-f\]{9,}\$" ${bitbucket.version}]} {
    8790        bitbucket.livecheck_type commits
    8891    } else {
Note: See TracChangeset for help on using the changeset viewer.