* add a long option to list avail. like list inst.
* print order in install files...
This commit is contained in:
+2
-3
@@ -191,8 +191,7 @@ def install_pkg_files(package_URIs):
|
|||||||
G_f.write_graphviz(sys.stdout)
|
G_f.write_graphviz(sys.stdout)
|
||||||
order = G_f.topological_sort()
|
order = G_f.topological_sort()
|
||||||
order.reverse()
|
order.reverse()
|
||||||
#if ctx.config.get_option('debug'):
|
ctx.ui.info(_('Installation order: ') + order)
|
||||||
# print 'installation order', order
|
|
||||||
for x in order:
|
for x in order:
|
||||||
operations.install_single_file(dfn[x])
|
operations.install_single_file(dfn[x])
|
||||||
else:
|
else:
|
||||||
@@ -367,7 +366,7 @@ version %s, release %s, build %s.')
|
|||||||
Bp.add(str(dep.package))
|
Bp.add(str(dep.package))
|
||||||
G_f.add_dep(x, dep)
|
G_f.add_dep(x, dep)
|
||||||
B = Bp
|
B = Bp
|
||||||
if ctx.options.get_option('debug'):
|
if ctx.config.get_option('debug'):
|
||||||
G_f.write_graphviz(sys.stdout)
|
G_f.write_graphviz(sys.stdout)
|
||||||
order = G_f.topological_sort()
|
order = G_f.topological_sort()
|
||||||
order.reverse()
|
order.reverse()
|
||||||
|
|||||||
+12
-3
@@ -703,6 +703,10 @@ Gives a brief list of PiSi components published in the repository.
|
|||||||
|
|
||||||
name = ("list-available", "la")
|
name = ("list-available", "la")
|
||||||
|
|
||||||
|
def options(self):
|
||||||
|
self.parser.add_option("-l", "--long", action="store_true",
|
||||||
|
default=False, help="show in long format")
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|
||||||
self.init(True)
|
self.init(True)
|
||||||
@@ -726,10 +730,15 @@ Gives a brief list of PiSi components published in the repository.
|
|||||||
installed_list = ctx.installdb.list_installed()
|
installed_list = ctx.installdb.list_installed()
|
||||||
list.sort()
|
list.sort()
|
||||||
for p in list:
|
for p in list:
|
||||||
if p in installed_list:
|
package = pkg_db.get_package(p)
|
||||||
print colorize(p, "cyan")
|
if self.options.long:
|
||||||
|
ctx.ui.info(str(package))
|
||||||
else:
|
else:
|
||||||
print p
|
pstr = p
|
||||||
|
if p in installed_list:
|
||||||
|
pstr = colorize(p, "cyan")
|
||||||
|
ctx.ui.info('%15s - %s ' % (pstr, package.summary))
|
||||||
|
|
||||||
|
|
||||||
class ListUpgrades(Command):
|
class ListUpgrades(Command):
|
||||||
"""List packages to be upgraded
|
"""List packages to be upgraded
|
||||||
|
|||||||
Reference in New Issue
Block a user