# Generate file lists used by apt-ftparchive to generate Packages and Sources files
# Copyright (C) 2000, 2001, 2002 James Troup <james@nocrew.org>
-# $Id: jenna,v 1.22 2002-11-22 04:06:32 troup Exp $
+# $Id: jenna,v 1.23 2002-11-26 15:49:16 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
projectB = pg.connect(Cnf["DB::Name"], Cnf["DB::Host"], int(Cnf["DB::Port"]));
db_access.init(Cnf, projectB);
Logger = logging.Logger(Cnf, "jenna");
- try:
- do_da_do_da();
- except:
- utils.print_exc();
+ utils.try_with_debug(do_da_do_da);
Logger.close();
#########################################################################################
# Utility functions
# Copyright (C) 2000, 2001, 2002 James Troup <james@nocrew.org>
-# $Id: utils.py,v 1.52 2002-11-22 04:06:34 troup Exp $
+# $Id: utils.py,v 1.53 2002-11-26 15:49:16 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
################################################################################
+def try_with_debug(function):
+ try:
+ function();
+ except SystemExit:
+ raise;
+ except:
+ print_exc();
+
+################################################################################
+
apt_pkg.init()
Cnf = apt_pkg.newConfiguration();