* add rebuild for single package, just for debugging
This commit is contained in:
@@ -609,9 +609,11 @@ Usage: list-installed
|
||||
class RebuildDb(Command):
|
||||
"""Rebuild Databases
|
||||
|
||||
Usage: rebuilddb
|
||||
Usage: rebuilddb [ <package1> <package2> ... <packagen> ]
|
||||
|
||||
Rebuilds the PiSi databases
|
||||
|
||||
If package specs are given, they should be the names of package dirs under /var/lib/pisi
|
||||
"""
|
||||
__metaclass__ = autocommand
|
||||
|
||||
@@ -621,8 +623,13 @@ Rebuilds the PiSi databases
|
||||
name = ("rebuild-db", "rdb")
|
||||
|
||||
def run(self):
|
||||
self.init(database=False)
|
||||
|
||||
self.init()
|
||||
|
||||
if self.args:
|
||||
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 :)
|
||||
if ctx.ui.confirm(_('Rebuild PISI databases?')):
|
||||
self.finalize()
|
||||
|
||||
Reference in New Issue
Block a user