3 import os, pg, stat, string, sys
4 import utils, db_access
5 import apt_pkg, apt_inst;
9 dir = '/org/ftp.debian.org/morgue/shania/'
10 if os.access(file,os.R_OK) == 0:
11 sys.stderr.write("E: can't read '%s' to remove it.\n" % (file));
13 dest = dir + os.path.basename(file);
14 if os.path.exists(dest):
15 sys.stderr.write("E: '%s' already exists in '%s'.\n" % (file, dir));
17 print "%s -> %s" % (file, dir);
18 utils.move(file, dest);
22 for changes_file in sys.argv[1:]:
24 changes = utils.parse_changes(changes_file, 0);
26 sys.stderr.write("E: caught exception parsing '%s' [%s].\n" % (changes_file, sys.exc_type));
29 files = utils.build_file_list(changes, "");
31 sys.stderr.write("E: caught exception building file list for '%s' [%s].\n" % (changes_file, sys.exc_type));
33 for file in files.keys():
37 #######################################################################################
39 if __name__ == '__main__':