şimdi doğru çalışmaya başladı, burada 2 farklı case var aslında. Depoda olan yüklenmeyen, yüklenmiş olan depoda olmayan v.s v.s
This commit is contained in:
@@ -893,8 +893,11 @@ Usage: info <package1> <package2> ... <packagen>
|
|||||||
ctx.ui.info(_('Package found in repository:'))
|
ctx.ui.info(_('Package found in repository:'))
|
||||||
self.print_pkginfo(metadata, files, pisi.itembyrepodb.repos)
|
self.print_pkginfo(metadata, files, pisi.itembyrepodb.repos)
|
||||||
|
|
||||||
if not (ctx.installdb.is_installed(arg) and ctx.packagedb.has_package(arg)):
|
if not ctx.packagedb.has_package(arg):
|
||||||
ctx.ui.info(_("No package named %s found in repositories" % arg))
|
ctx.ui.info(_("%s is not found in repositories" % arg))
|
||||||
|
|
||||||
|
if not ctx.installdb.is_installed(arg):
|
||||||
|
ctx.ui.info(_("%s is not installed" % arg))
|
||||||
|
|
||||||
def print_pkginfo(self, metadata, files, repo = None):
|
def print_pkginfo(self, metadata, files, repo = None):
|
||||||
import os.path
|
import os.path
|
||||||
|
|||||||
Reference in New Issue
Block a user