diff -Nur plague-0.4.4.1-orig/server/PackageJob.py plague-0.4.4.1/server/PackageJob.py --- plague-0.4.4.1-orig/server/PackageJob.py 2006-03-13 05:10:49.000000000 +0100 +++ plague-0.4.4.1/server/PackageJob.py 2007-11-14 21:53:48.000000000 +0100 @@ -21,7 +21,8 @@ import commands import threading import time -import rpmUtils +import rpmUtils.transaction +import rpmUtils.miscutils import exceptions import shutil import copy @@ -47,11 +48,11 @@ print stuff class PrepError(exceptions.Exception): - def __init__(self, args=None): + def __init__(self, msg): exceptions.Exception.__init__(self) - self.args = args + self.msg = msg def __str__(self): - return self.args + return self.msg class BuildError(exceptions.Exception): def __init__(self, msg, arch): @@ -553,8 +554,8 @@ if self.use_cvs == True: shutil.rmtree(self.checkout_tmpdir, ignore_errors=True) subj = 'Prep Error (Job %s): %s on %s' % (self.uid, self._source, self._target_str) - self.email_result(self.username, resultstring=e.args, subject=subj) - self._stage_failed(e.args) + self.email_result(self.username, resultstring=e.msg, subject=subj) + self._stage_failed(e.msg) except BuildError, e: subj = 'Build Error (Job %s): %s on %s' % (self.uid, self._source, self._target_str) base_url = self._server_cfg.get_str("UI", "log_url")