[65221] trunk/base/src/port1.0/portdestroot.tcl

raimue at macports.org raimue at macports.org
Tue Mar 23 19:17:18 PDT 2010


Revision: 65221
          http://trac.macports.org/changeset/65221
Author:   raimue at macports.org
Date:     2010-03-23 19:17:15 -0700 (Tue, 23 Mar 2010)
Log Message:
-----------
port1.0/portdestroot.tcl: Error out if no files at all have been installed

Modified Paths:
--------------
    trunk/base/src/port1.0/portdestroot.tcl

Modified: trunk/base/src/port1.0/portdestroot.tcl
===================================================================
--- trunk/base/src/port1.0/portdestroot.tcl	2010-03-24 01:33:35 UTC (rev 65220)
+++ trunk/base/src/port1.0/portdestroot.tcl	2010-03-24 02:17:15 UTC (rev 65221)
@@ -167,6 +167,16 @@
         }
     }
 
+    if {![file isdirectory ${destroot}]} {
+        ui_error "No files have been installed in the destroot directory!"
+        ui_error "Please make sure that this software supports\
+                  'make install DESTDIR=\${destroot}' or implement an\
+                  alternative destroot mechanism in the Portfile."
+        ui_error "Files might have been installed directly into your system,\
+                  check before proceeding."
+        return -code error "Staging $portname into destroot failed"
+    }
+
     # Compress all manpages with gzip (instead)
     set manpath "${destroot}${prefix}/share/man"
     set gzip [findBinary gzip ${portutil::autoconf::gzip_path}]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100323/ed8f45ac/attachment-0001.html>


More information about the macports-changes mailing list