public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r13233 - main/branches/2.1.6/pym/portage
@ 2009-03-27  9:40 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-03-27  9:40 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2009-03-27 09:40:37 +0000 (Fri, 27 Mar 2009)
New Revision: 13233

Modified:
   main/branches/2.1.6/pym/portage/__init__.py
Log:
Make the argument hash in config.setcpv() a little stronger. (trunk r13232)

Modified: main/branches/2.1.6/pym/portage/__init__.py
===================================================================
--- main/branches/2.1.6/pym/portage/__init__.py	2009-03-27 09:40:15 UTC (rev 13232)
+++ main/branches/2.1.6/pym/portage/__init__.py	2009-03-27 09:40:37 UTC (rev 13233)
@@ -2076,17 +2076,19 @@
 
 		self.modifying()
 
-		args_hash = (id(mycpv), id(mydb))
-		if args_hash == self._setcpv_args_hash:
-			return
-		self._setcpv_args_hash = args_hash
-
 		pkg = None
 		if not isinstance(mycpv, basestring):
 			pkg = mycpv
 			mycpv = pkg.cpv
 			mydb = pkg.metadata
+			args_hash = (mycpv, id(pkg))
+		else:
+			args_hash = (mycpv, id(mydb))
 
+		if args_hash == self._setcpv_args_hash:
+			return
+		self._setcpv_args_hash = args_hash
+
 		has_changed = False
 		self.mycpv = mycpv
 		cat, pf = catsplit(mycpv)




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-27  9:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-27  9:40 [gentoo-commits] portage r13233 - main/branches/2.1.6/pym/portage Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox