* fix: make check work again
This commit is contained in:
+3
-3
@@ -217,11 +217,11 @@ def configure_pending():
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
raise Error(_("COMAR: comard not fully installed"))
|
raise Error(_("COMAR: comard not fully installed"))
|
||||||
|
|
||||||
def info(package):
|
def info(package, installed = False):
|
||||||
if package.endswith(ctx.const.package_suffix):
|
if package.endswith(ctx.const.package_suffix):
|
||||||
return info_file(package)
|
return info_file(package)
|
||||||
else:
|
else:
|
||||||
return info_name(package)
|
return info_name(package, installed)
|
||||||
|
|
||||||
def info_file(package_fn):
|
def info_file(package_fn):
|
||||||
from package import Package
|
from package import Package
|
||||||
@@ -272,7 +272,7 @@ def search_package(query, lang = None):
|
|||||||
return r
|
return r
|
||||||
|
|
||||||
def check(package):
|
def check(package):
|
||||||
md, files = info(package)
|
md, files = info(package, True)
|
||||||
corrupt = []
|
corrupt = []
|
||||||
for file in files.list:
|
for file in files.list:
|
||||||
if file.hash and file.type != "config" \
|
if file.hash and file.type != "config" \
|
||||||
|
|||||||
@@ -130,6 +130,7 @@ class CLI(UI):
|
|||||||
util.xterm_title(msg)
|
util.xterm_title(msg)
|
||||||
|
|
||||||
def notify(self, event, **keywords):
|
def notify(self, event, **keywords):
|
||||||
|
print 'notify', event
|
||||||
if event == ui.installed:
|
if event == ui.installed:
|
||||||
msg = _('Installed %s') % keywords['package'].name
|
msg = _('Installed %s') % keywords['package'].name
|
||||||
elif event == ui.removed:
|
elif event == ui.removed:
|
||||||
|
|||||||
Reference in New Issue
Block a user