# 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();