# Checks Debian packages from Incoming
# Copyright (C) 2000, 2001 James Troup <james@nocrew.org>
-# $Id: jennifer,v 1.1 2002-02-12 23:08:07 troup Exp $
+# $Id: jennifer,v 1.2 2002-02-15 02:54:22 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
################################################################################
# Globals
-jennifer_version = "$Revision: 1.1 $";
+jennifer_version = "$Revision: 1.2 $";
Cnf = None;
Options = None;
def do_byhand (summary):
print "Moving to BYHAND holding area."
+ Logger.log(["Moving to byhand", pkg.changes_file]);
Katie.dump_vars(Cnf["Dir::QueueByhandDir"]);
Subst = Katie.Subst;
print "Moving to NEW holding area."
+ Logger.log(["Moving to new", pkg.changes_file]);
Katie.dump_vars(Cnf["Dir::QueueNewDir"]);
raise;
except:
print "ERROR";
- traceback.print_exc(file=sys.stdout);
+ traceback.print_exc(file=sys.stderr);
pass;
# Restore previous WD
sets = "set"
if accept_count > 1:
sets = "sets"
- sys.stderr.write("Accepted %d package %s, %s.\n" % (accept_count, sets, utils.size_type(int(accept_bytes))));
+ print "Accepted %d package %s, %s." % (accept_count, sets, utils.size_type(int(accept_bytes)));
Logger.log(["total",accept_count,accept_bytes]);
if not Options["No-Action"]:
# Utility functions for katie
# Copyright (C) 2001 James Troup <james@nocrew.org>
-# $Id: katie.py,v 1.2 2002-02-15 01:48:20 troup Exp $
+# $Id: katie.py,v 1.3 2002-02-15 02:54:22 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
d_changes[i] = changes[i];
# Optional changes fields
for i in [ "changed-by", "changedby822", "maintainer822", "filecontents" ]:
- d_changes[i] = changes[i];
+ if d_changes.has_key(i):
+ d_changes[i] = changes[i];
## dsc
for i in [ "source", "version", "maintainer", "fingerprint" ]:
if dsc.has_key(i):
files = self.pkg.files;
print "Accepting."
+ self.Logger.log(["Accepting changes",self.pkg.changes_file]);
self.dump_vars(Cnf["Dir::QueueAcceptedDir"]);