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

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

BUG:FIXED:12979
ü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>
return
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'):
self.print_package_info(pkg)
......
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