# Clean incoming of old unused files
# Copyright (C) 2000, 2001, 2002 James Troup <james@nocrew.org>
-# $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
################################################################################
-# 23:12|<aj> I will not hush!
-# 23:12|<elmo> :>
-# 23:12|<aj> Where there is injustice in the world, I shall be there!
-# 23:13|<aj> I shall not be silenced!
-# 23:13|<aj> The world shall know!
-# 23:13|<aj> The world *must* know!
-# 23:13|<elmo> oh dear, he's gone back to powerpuff girls... ;-)
-# 23:13|<aj> yay powerpuff girls!!
-# 23:13|<aj> buttercup's my favourite, who's yours?
-# 23:14|<aj> you're backing away from the keyboard right now aren't you?
-# 23:14|<aj> *AREN'T YOU*?!
-# 23:15|<aj> I will not be treated like this.
-# 23:15|<aj> I shall have my revenge.
-# 23:15|<aj> I SHALL!!!
-
-################################################################################
-
Cnf = None;
Options = None;
del_dir = None;
# 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;
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;
if Options["Help"]:
usage();
- init ();
+ init();
if Options["Verbose"]:
print "Processing incoming..."
#######################################################################################
if __name__ == '__main__':
- main()
+ main();