Commits

Michał Górny committed d7368f0

Support passing dbapi instance to cleanup actions.

Comments (0)

Files changed (2)

lib/flaggie/cleanup.py

 		if args:
 			self(*args)
 
-	def __call__(self, pfiles):
+	def __call__(self, pfiles, dbapi):
+		self._dbapi = dbapi
 		for f in pfiles:
 			self._perform(f)
 

lib/flaggie/cli.py

 			print('Warning: %s' % e)
 
 	for a in cleanup_actions:
-		a(pfiles)
+		a(pfiles, porttree.dbapi)
 
 	pfiles.write()