Commits

Anonymous committed 741e567

Move the 'rebuilds' var around.

Comments (0)

Files changed (1)

smart-live-rebuild.py

 #	vim:fileencoding=utf-8
 # Check all live ebuilds for updates and rebuild them if necessary.
 # (C) 2010 Michał Górny <gentoo@mgorny.alt.pl>
-# Released under the terms of the 3-clause BSD license or the GPL-2 license
+# Released under the terms of the 3-clause BSD license or the GPL-2 license.
 
 PV = '0.2'
 
 
 from optparse import OptionParser
 
-rebuilds = {}
-
 class out:
 	red = '\033[1;31m'
 	green = '\033[32m'
 
 			out.s1('Enumerating packages ...')
 
+			rebuilds = {}
+
 			Shared.opentmp()
 			try:
 				db = portage.db[portage.settings['ROOT']]['vartree'].dbapi