[92930] trunk/dports/graphics/openjpeg/Portfile

jmr at macports.org jmr at macports.org
Thu May 10 22:28:24 PDT 2012


Revision: 92930
          https://trac.macports.org/changeset/92930
Author:   jmr at macports.org
Date:     2012-05-10 22:28:22 -0700 (Thu, 10 May 2012)
Log Message:
-----------
openjpeg: check that files have no owner before deleting

Modified Paths:
--------------
    trunk/dports/graphics/openjpeg/Portfile

Modified: trunk/dports/graphics/openjpeg/Portfile
===================================================================
--- trunk/dports/graphics/openjpeg/Portfile	2012-05-11 03:38:20 UTC (rev 92929)
+++ trunk/dports/graphics/openjpeg/Portfile	2012-05-11 05:28:22 UTC (rev 92930)
@@ -38,7 +38,7 @@
     # ${prefix}/share/man bypassing ${destroot}; remove them if found.
     foreach m {man1/image_to_j2k.1.gz man1/j2k_dump.1.gz man1/j2k_to_image.1.gz man3/libopenjpeg.3.gz} {
         set filepath ${prefix}/share/man/${m}
-        if {[file exists ${filepath}]} {
+        if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} {
             if {[catch {delete ${filepath}}]} {
                 ui_warn "Cannot delete ${filepath}; please remove it manually"
             }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120510/cf885f3e/attachment.html>


More information about the macports-changes mailing list