[110694] trunk/base/src/package1.0/portpkg.tcl
blair at macports.org
blair at macports.org
Tue Sep 3 18:02:20 PDT 2013
Revision: 110694
https://trac.macports.org/changeset/110694
Author: blair at macports.org
Date: 2013-09-03 18:02:19 -0700 (Tue, 03 Sep 2013)
Log Message:
-----------
portpkg: put path of package into log message.
The new log message contains everything one needs to parse the log
output to get the port name, version number and pkg path.
Modified Paths:
--------------
trunk/base/src/package1.0/portpkg.tcl
Modified: trunk/base/src/package1.0/portpkg.tcl
===================================================================
--- trunk/base/src/package1.0/portpkg.tcl 2013-09-04 00:57:39 UTC (rev 110693)
+++ trunk/base/src/package1.0/portpkg.tcl 2013-09-04 01:02:19 UTC (rev 110694)
@@ -99,8 +99,6 @@
proc portpkg::pkg_main {args} {
global subport epoch version revision UI_PREFIX
- ui_msg "$UI_PREFIX [format [msgcat::mc "Creating pkg for %s version %s_%s_%s"] ${subport} ${epoch} ${version} ${revision}]"
-
if {[getuid] == 0 && [geteuid] != 0} {
elevateToRoot "pkg"
}
@@ -124,8 +122,11 @@
}
set pkgpath "${package.destpath}/${portname}-${portepoch_namestr}${portversion}${portrevision_namestr}.pkg"
+
+ ui_msg "$UI_PREFIX [format [msgcat::mc "Creating pkg for %s version %s_%s_%s at %s"] ${portname} ${portepoch} ${portversion} ${portrevision} ${pkgpath}]"
+
if {[file readable $pkgpath] && ([file mtime ${pkgpath}] >= [file mtime ${portpath}/Portfile])} {
- ui_msg "$UI_PREFIX [format [msgcat::mc "Package for %s version %s_%s_%s is up-to-date"] ${portname} ${portepoch} ${portversion} ${portrevision}]"
+ ui_msg "$UI_PREFIX [format [msgcat::mc "Package for %s version %s_%s_%s at %s is up-to-date"] ${portname} ${portepoch} ${portversion} ${portrevision} ${pkgpath}]"
return 0
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130903/602c4f28/attachment.html>
More information about the macports-changes
mailing list