Ignore:
Timestamp:
Dec 11, 2013, 7:33:11 AM (5 years ago)
Author:
mww@…
Message:

be more intractable in the search for the worksrcdir

File:
1 edited

Legend:

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

    r114576 r114592  
    7979    fetch.ignore_sslcert    yes
    8080
     81    # if worksrcpath does not exist, try to guess the directory that should be and rename it
    8182    post-extract {
    8283        if {![file exists ${worksrcpath}] && \
     
    8485                ${master_sites} eq ${github.master_sites} && \
    8586                [llength ${distfiles}] > 0 && \
    86                 [llength [glob -nocomplain ${workpath}/*]] > 0 && \
    87                 [file isdirectory [glob ${workpath}/*]]} {
    88             move [glob ${workpath}/*] ${worksrcpath}
     87                [llength [glob -nocomplain ${workpath}/*]] > 0} {
     88            foreach item [glob ${workpath}/*] {
     89                if {[file isdirectory ${item}]} {
     90                    move ${item} ${worksrcpath}
     91                    break
     92                }
     93            }
    8994        }
    9095    }
Note: See TracChangeset for help on using the changeset viewer.