Commits

Michał Górny committed 9079406

Revert "Use simple directory list instead of rebuilds dict."

We need the dict to be able to associate repeating repositories with VCS
instances.

  • Participants
  • Parent commits 46c8500

Comments (0)

Files changed (1)

File SmartLiveRebuild/core.py

 
 			packages = []
 			erraneous = []
-			dirs = []
+			rebuilds = {}
 
 			def loop_iter(blocking = False):
 				needsleep = True
 									env.close()
 									if opts.network or vcs.getsavedrev():
 										dir = vcs.getpath()
-										if dir not in dirs:
-											dirs.append(dir)
+										if dir not in rebuilds:
+											rebuilds[dir] = vcs
 											processes.append(vcs)
 											loop_iter()
+										else:
+											rebuilds[dir].append(vcs)
 						except KeyboardInterrupt:
 							raise
 						except NonLiveEbuild as e: