Ignore:
Timestamp:
Feb 4, 2016, 2:46:05 AM (3 years ago)
Author:
ryandesign@…
Message:

logwatch: remove unregistered /opt/local/bin/logwatch properly before activation (#50528)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/security/logwatch/Portfile

    r145378 r145392  
    66name                logwatch
    77version             7.4.1
    8 revision            3
     8revision            4
    99distname            logwatch-${version}
    1010categories          security
     
    6969
    7070pre-activate {
    71     #- this port used to create a symlink directly in ${prefix} which was fixed in 7.4.1_1
    72     #- we need to remove this symlink from ${prefix} though, so upgrades work
    73     #- this can eventually be removed, origionally added 2014-10-01
     71    # This port used to create a symlink directly in ${prefix} which was fixed in 7.4.1_1.
     72    # The old unregistered symlink needs to be deleted from ${prefix} so upgrades work; fixed in 7.4.1_4.
     73    # This can eventually be removed. Originally added 2014-10-01; fixed 2016-02-03.
    7474    set badfile ${prefix}/bin/${name}
    75     if {[file exists ${badfile}] && [registry_file_registered ${badfile}] == "0"} {
     75    if {![catch {file type ${badfile}}] && [registry_file_registered ${badfile}] == "0"} {
    7676        if {[catch {delete ${badfile}}]} {
    7777            ui_warn "Cannot delete ${badfile}; please remove it manually"
Note: See TracChangeset for help on using the changeset viewer.