* fix: init api for partial rebuild-db

This commit is contained in:
Eray Özkural
2005-12-09 16:07:38 +00:00
parent a5426b5428
commit 26e3d13d1f
+3 -4
View File
@@ -652,14 +652,13 @@ If package specs are given, they should be the names of package dirs under /var/
name = ("rebuild-db", "rdb")
def run(self):
self.init(database=False)
if self.args:
self.init(database=True)
for package_fn in self.args:
pisi.api.resurrect_package(package_fn)
else:
#FIXME: Confirm icin init, unlink icin finalize, rebuild_db icin init lazim :)
self.init(database=False)
if ctx.ui.confirm(_('Rebuild PISI databases?')):
self.finalize()
import os