Changeset 134171 for trunk/dports/java


Ignore:
Timestamp:
Mar 19, 2015, 4:52:03 PM (4 years ago)
Author:
blair@…
Message:

maven{3,31}: follow up to r134113, properly handle symlinks.

'file exists ${filepath}' resolves symlinks, so switch to
'![catch {file type ${filepath}}]'

Suggested by Joshua Root.

Location:
trunk/dports/java
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/java/maven3/Portfile

    r134113 r134171  
    77name            maven3
    88version         3.3.1
    9 revision        1
     9revision        2
    1010
    1111categories      java devel
     
    8787    foreach file {bin/mvn3} {
    8888        set filepath ${prefix}/${file}
    89         if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} {
     89        if {![catch {file type ${filepath}}] && [registry_file_registered ${filepath}] == "0"} {
    9090            delete ${filepath}
    9191        }
  • trunk/dports/java/maven31/Portfile

    r134114 r134171  
    77name            maven31
    88version         3.1.1
    9 revision        2
     9revision        3
    1010
    1111categories      java devel
     
    102102    foreach file {bin/mvn31} {
    103103        set filepath ${prefix}/${file}
    104         if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} {
     104        if {![catch {file type ${filepath}}] && [registry_file_registered ${filepath}] == "0"} {
    105105            delete ${filepath}
    106106        }
Note: See TracChangeset for help on using the changeset viewer.