# info
info = subparsers.add_parser("info",
help=_("Print some information about the given package(s)"))
+ info.add_argument("--long", action="store_true",
+ help=_("Show more information"))
info.add_argument("package", nargs="+",
help=_("Give at least the name of one package"))
info.set_defaults(func=self.handle_info)
def handle_info(self, ns):
with self.pakfire(ns) as p:
for pkg in p.info(ns.package):
- s = pkg.dump(long=ns.verbose)
+ s = pkg.dump(long=ns.long)
self.ui.message(s)
def handle_search(self, ns):
# info
info = subparsers.add_parser("info",
help=_("Print some information about the given package(s)"))
+ info.add_argument("--filelist", action="store_true",
+ help=_("Show filelist"))
info.add_argument("package", nargs="+",
help=_("Give at least the name of one package."))
- info.set_defaults(func=self.handle_info, verbose=True)
+ info.set_defaults(func=self.handle_info)
# provides
provides = subparsers.add_parser("provides",
with self.builder(ns) as b:
with b.pakfire as p:
for pkg in p.info(ns.package):
- s = pkg.dump(long=ns.verbose)
+ s = pkg.dump(long=True, filelist=ns.filelist)
self.ui.message(s)
def handle_repolist(self, ns):