Kaydet (Commit) cef1a9ae authored tarafından Eray Özkural's avatar Eray Özkural

* fix: do not crashb check if given package not installed

üst e96d2d43
......@@ -678,8 +678,11 @@ Usage: check <package1> <package2> ... <packagen>
return
self.init(True)
for arg in self.args:
pisi.api.check(arg)
for pkg in self.args:
if ctx.installdb.is_installed(pkg):
pisi.api.check(pkg)
else:
ctx.ui.info(_('Package %s not installed') % pkg)
self.finalize()
......
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