From: Joerg Jaspert Date: Sun, 19 Sep 2010 19:55:49 +0000 (+0200) Subject: Remove unneeded code X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;ds=inline;h=127846318990dfdb6b59acb9b9efd72ceb81393c;p=dak.git Remove unneeded code Signed-off-by: Joerg Jaspert --- diff --git a/dak/dak.py b/dak/dak.py index bd5108fa..7d4a4157 100755 --- a/dak/dak.py +++ b/dak/dak.py @@ -108,8 +108,6 @@ def init(): "Manipulate suites in bulk"), ("cruft-report", "Check for obsolete or duplicated packages"), - ("decode-dot-dak", - "Display contents of a .dak file"), ("examine-package", "Show information useful for NEW processing"), ("find-null-maintainers", @@ -122,8 +120,6 @@ def init(): "Sync PostgreSQL users with passwd file"), ("admin", "Perform administration on the dak database"), - ("init-db", - "Update the database to match the conf file"), ("update-db", "Updates databae schema to latest revision"), ("init-dirs", diff --git a/dak/decode_dot_dak.py b/dak/decode_dot_dak.py deleted file mode 100755 index 54b4ca12..00000000 --- a/dak/decode_dot_dak.py +++ /dev/null @@ -1,69 +0,0 @@ -#!/usr/bin/env python - -""" Dump variables from a .dak file to stdout """ -# Copyright (C) 2001, 2002, 2004, 2006 James Troup - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -################################################################################ - -# ooooooooooooooohhhhhhhhhhhhhhhhhhhhhhhhh dddddddddeeeeeeeaaaaaaaarrrrrrrrrrr -# iiiiiiiiiiiii tttttttttthhhhhhhhiiiiiiiiiiiinnnnnnnnnkkkkkkkkkkkkk iiiiiiiiiiiiii mmmmmmmmmmeeeeeeeesssssssssssssssseeeeeeeddd uuuupppppppppppp ttttttttthhhhhhhheeeeeeee xxxxxxxssssssseeeeeeeeettttttttttttt aaaaaaaarrrrrrrggggggsssssssss -# -# ['xset r rate 30 250' bad, mmkay] - -################################################################################ - -import sys -import apt_pkg -from daklib.changes import Changes -from daklib import utils - -################################################################################ - -def usage(exit_code=0): - print """Usage: dak decode-dot-dak FILE... -Dumps the info in .dak FILE(s). - - -h, --help show this help and exit.""" - sys.exit(exit_code) - -################################################################################ - -def main(): - Cnf = utils.get_conf() - Arguments = [('h',"help","Decode-Dot-Dak::Options::Help")] - for i in [ "help" ]: - if not Cnf.has_key("Decode-Dot-Dak::Options::%s" % (i)): - Cnf["Decode-Dot-Dak::Options::%s" % (i)] = "" - - apt_pkg.ParseCommandLine(Cnf, Arguments, sys.argv) - - Options = Cnf.SubTree("Decode-Dot-Dak::Options") - if Options["Help"]: - usage() - - - for arg in sys.argv[1:]: - arg = utils.validate_changes_file_arg(arg,require_changes=-1) - k = Changes() - k.load_dot_dak(arg) - print arg - print k - -################################################################################ - -if __name__ == '__main__': - main()