Kaydet (Commit) 9a167f46 authored tarafından Serdar Dalgıç's avatar Serdar Dalgıç

cli/blame: Blame installed package instead of the one in the repositories.

üst 12d5e872
......@@ -31,7 +31,7 @@ Usage: blame <package> ... <package>
def __init__(self, args=None):
super(Blame, self).__init__(args)
self.packagedb = pisi.db.packagedb.PackageDB()
self.installdb = pisi.db.installdb.InstallDB()
name = ("blame", "bl")
......@@ -50,8 +50,8 @@ Usage: blame <package> ... <package>
for package in self.args:
if self.packagedb.has_package(package):
pkg = self.packagedb.get_package(package)
if self.installdb.has_package(package):
pkg = self.installdb.get_package(package)
release = ctx.get_option('release')
if not release and not ctx.get_option('all'):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment