]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
naoki: Remove export of data to the wiki.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 8 Sep 2010 20:45:52 +0000 (22:45 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 8 Sep 2010 20:45:52 +0000 (22:45 +0200)
naoki/__init__.py
naoki/terminal.py

index d77e9435cdf98f6d8bec463460b8442fa8de855f..8c02d4a6a08a9d609218e6d9bf85d03d2abadb16 100644 (file)
@@ -85,22 +85,6 @@ class Naoki(object):
 
        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("""\
 --------------------------------------------------------------------------------
@@ -152,18 +136,7 @@ Release       : %(release)s
 
        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"):
index ca794fff99286c467bebba24e5cafce53ade11ff..f0fc67a376650a45fe957ba411f7716017caba3c 100644 (file)
@@ -297,7 +297,6 @@ class Commandline(object):
                                                        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"),
@@ -310,9 +309,7 @@ class Commandline(object):
                                                        ]),
                                                Parser("groups",
                                                        help="Show package groups",
-                                                       arguments=[
-                                                               Option("wiki", ["--wiki"], help="Output in wiki format"),
-                                                       ]),
+                                                       ),
                                        ]),
 
                                # Source