def call_package_info(self, args):
for package in backend.parse_package_info(args.packages):
- if args.wiki:
- print package.fmtstr("""\
-====== %(name)s ======
-| **Version:** | %(version)s |
-| **Release:** | %(release)s |
-| **Group:** | %(group)s |
-| **License:** | %(license)s |
-| **Maintainer:** | %(maintainer)s |
-| **Dependencies:** | %(deps)s |
-| **Build dependencies:** | %(build_deps)s |
-| %(summary)s ||
-| %(description)s ||
-| **Website:** | %(url)s |
-""")
- continue
-
if args.long:
print package.fmtstr("""\
--------------------------------------------------------------------------------
def call_package_groups(self, args):
groups = backend.get_group_names()
- if args.wiki:
- print "====== All available groups of packages ======"
- for group in groups:
- print "===== %s =====" % group
- for package in backend.parse_package_info(backend.get_package_names()):
- if not package.group == group:
- continue
-
- print package.fmtstr(" * [[.package:%(name)s|%(name)s]] - %(summary)s")
-
- else:
- print "\n".join(groups)
+ print "\n".join(groups)
def call_source(self, args):
if not args.has_key("action"):
arguments=[
Option("long", ["-l", "--long"], help="Show long list of information"),
Option("machine", ["--machine"], help="Output in machine parseable format"),
- Option("wiki", ["--wiki"], help="Output in wiki format"),
List("packages"),
]),
Parser("tree", help="Show package tree"),
]),
Parser("groups",
help="Show package groups",
- arguments=[
- Option("wiki", ["--wiki"], help="Output in wiki format"),
- ]),
+ ),
]),
# Source