public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r12099 - main/branches/2.1.6/bin
@ 2008-11-26  6:52 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-11-26  6:52 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2008-11-26 06:52:05 +0000 (Wed, 26 Nov 2008)
New Revision: 12099

Modified:
   main/branches/2.1.6/bin/repoman
Log:
Eliminate redundant Manifest separation code by combining mychanged + mynew sooner.
(trunk r12098)


Modified: main/branches/2.1.6/bin/repoman
===================================================================
--- main/branches/2.1.6/bin/repoman	2008-11-26 06:51:17 UTC (rev 12098)
+++ main/branches/2.1.6/bin/repoman	2008-11-26 06:52:05 UTC (rev 12099)
@@ -1758,23 +1758,14 @@
 	# Manifests need to be regenerated after all other commits, so don't commit
 	# them now even if they have changed.
 	mymanifests = set()
-	changed_set = set()
-	new_set = set()
-	for f in mychanged:
+	myupdates = set()
+	for f in mychanged + mynew:
 		if "Manifest" == os.path.basename(f):
 			mymanifests.add(f)
 		else:
-			changed_set.add(f)
-	for f in mynew:
-		if "Manifest" == os.path.basename(f):
-			mymanifests.add(f)
-		else:
-			new_set.add(f)
-	mychanged = list(changed_set)
-	mynew =  list(new_set)
+			myupdates.add(f)
+	myupdates = list(myupdates)
 	mymanifests = list(mymanifests)
-	del changed_set, new_set
-	myupdates = mychanged + mynew
 	myheaders = []
 	mydirty = []
 	headerstring = "'\$(Header|Id)"




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

only message in thread, other threads:[~2008-11-26  6:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-26  6:52 [gentoo-commits] portage r12099 - main/branches/2.1.6/bin 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