X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=amber;h=00bd0bafb5c98aa5b668c1a316238cf4bdd5c2f1;hb=6cc79b7b093af0c68c9d80c61d5aa7cfe72c9188;hp=404b52853b98d92bafa9fe741f011f2490c0ac6e;hpb=c846e77a848d60dd115f00faa0d9a854161d99eb;p=dak.git diff --git a/amber b/amber index 404b5285..00bd0baf 100755 --- a/amber +++ b/amber @@ -1,8 +1,8 @@ #!/usr/bin/env python # Wrapper for Debian Security team -# Copyright (C) 2002 James Troup -# $Id: amber,v 1.6 2002-10-16 02:47:32 troup Exp $ +# Copyright (C) 2002, 2003 James Troup +# $Id: amber,v 1.8 2003-03-14 19:06:02 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 @@ -195,7 +195,7 @@ def make_advisory(advisory_nr, changes_files): "poolname": dscpoolname }; if os.environ.has_key("SUDO_UID"): - whoami = os.environ["SUDO_UID"].atol(); + whoami = long(os.environ["SUDO_UID"]); else: whoami = os.getuid(); whoamifull = pwd.getpwuid(whoami); @@ -254,7 +254,7 @@ def make_advisory(advisory_nr, changes_files): adv = utils.TemplateSubst(Subst, Cnf["Dir::Templates"]+"/amber.advisory"); if not Options["No-Action"]: - utils.send_mail (adv, ""); + utils.send_mail (adv); else: print "[]";