X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=shania;h=f01d20f1f84290dbb3c2fbbbb18e28c2a2dc13f3;hb=777e75e96ebc6651f77c67fddade7e8d0bc5d592;hp=6131cbc69225cdb6258d04df44e2588351b182cd;hpb=8ecf66b7d933929ca5f504a32fb54542b0b87b71;p=dak.git diff --git a/shania b/shania index 6131cbc6..f01d20f1 100755 --- a/shania +++ b/shania @@ -2,7 +2,7 @@ # Clean incoming of old unused files # Copyright (C) 2000, 2001, 2002 James Troup -# $Id: shania,v 1.14 2002-05-08 11:13:02 troup Exp $ +# $Id: shania,v 1.16 2002-05-23 09:54:23 troup Exp $ # 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 @@ -26,23 +26,6 @@ import apt_pkg; ################################################################################ -# 23:12| I will not hush! -# 23:12| :> -# 23:12| Where there is injustice in the world, I shall be there! -# 23:13| I shall not be silenced! -# 23:13| The world shall know! -# 23:13| The world *must* know! -# 23:13| oh dear, he's gone back to powerpuff girls... ;-) -# 23:13| yay powerpuff girls!! -# 23:13| buttercup's my favourite, who's yours? -# 23:14| you're backing away from the keyboard right now aren't you? -# 23:14| *AREN'T YOU*?! -# 23:15| I will not be treated like this. -# 23:15| I shall have my revenge. -# 23:15| I SHALL!!! - -################################################################################ - Cnf = None; Options = None; del_dir = None; @@ -129,8 +112,8 @@ def flush_orphans (): # Proces all .changes and .dsc files. for changes_filename in changes_files: try: - changes = utils.parse_changes(changes_filename, 0) - files = utils.build_file_list(changes, ""); + changes = utils.parse_changes(changes_filename); + files = utils.build_file_list(changes); except: utils.warn("error processing '%s'; skipping it. [Got %s]" % (changes_filename, sys.exc_type)); continue; @@ -139,8 +122,8 @@ def flush_orphans (): for file in files.keys(): if file[-4:] == ".dsc": try: - dsc = utils.parse_changes(file, 0) - dsc_files = utils.build_file_list(dsc, 1) + dsc = utils.parse_changes(file); + dsc_files = utils.build_file_list(dsc, is_a_dsc=1); except: utils.warn("error processing '%s'; skipping it. [Got %s]" % (file, sys.exc_type)); continue; @@ -194,7 +177,7 @@ def main (): if Options["Help"]: usage(); - init (); + init(); if Options["Verbose"]: print "Processing incoming..." @@ -209,4 +192,4 @@ def main (): ####################################################################################### if __name__ == '__main__': - main() + main();