[48742] trunk/base/src/macports1.0/macports.tcl

jmr at macports.org jmr at macports.org
Fri Mar 27 17:32:27 PDT 2009


Revision: 48742
          http://trac.macports.org/changeset/48742
Author:   jmr at macports.org
Date:     2009-03-27 17:32:26 -0700 (Fri, 27 Mar 2009)
Log Message:
-----------
When upgrading, get the version, revision, and epoch from the Portfile rather than the index

Modified Paths:
--------------
    trunk/base/src/macports1.0/macports.tcl

Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl	2009-03-27 21:54:56 UTC (rev 48741)
+++ trunk/base/src/macports1.0/macports.tcl	2009-03-28 00:32:26 UTC (rev 48742)
@@ -2273,6 +2273,9 @@
 			array unset portinfo
 			array set portinfo [mportinfo $workername]
 			set portwasopened 1
+			set version_in_tree "$portinfo(version)"
+			set revision_in_tree "$portinfo(revision)"
+			set epoch_in_tree "$portinfo(epoch)"
 
             if {![_mportispresent $workername $dspec ] } {
                 # upgrade its dependencies first
@@ -2416,6 +2419,9 @@
 		array unset portinfo
 		array set portinfo [mportinfo $workername]
 		set portwasopened 1
+		set version_in_tree "$portinfo(version)"
+		set revision_in_tree "$portinfo(revision)"
+		set epoch_in_tree "$portinfo(epoch)"
 	}
 		
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090327/45f2bf45/attachment.html>


More information about the macports-changes mailing list