aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Christoph Goehre <christoph.goehre@gmx.de>2008-04-06 17:26:17 +0200
committerLibravatar Christoph Goehre <christoph.goehre@gmx.de>2008-04-06 17:26:17 +0200
commitc6f68f96f235a84e10c57e921b092e3a3fb29e38 (patch)
treea2679096bd829e8f9cd5f23ca3b8b0e591a59134
parent2fc62e2687c755705b0c9bcfa0c32a34bf47c073 (diff)
downloadmini-dinstall-c6f68f96f235a84e10c57e921b092e3a3fb29e38.tar.bz2
mini-dinstall-c6f68f96f235a84e10c57e921b092e3a3fb29e38.tar.xz
mini-dinstall-c6f68f96f235a84e10c57e921b092e3a3fb29e38.tar.zst
fix crash in hash generation for Release file
If mini-dinstall realise there is no child processes from the external program, it should inform the logger and go on. But I forget to add the self statement before the logger and so it crashed down. Apr 04 15:12:49 mini-dinstall [-1358341200] ERROR: Unhandled exception; shutting down Traceback (most recent call last): File "/usr/bin/mini-dinstall", line 1165, in run self._gen_release_all(True) File "/usr/bin/mini-dinstall", line 1158, in _gen_release_all self._gen_release(self._arches, force) File "/usr/bin/mini-dinstall", line 1249, in _gen_release self._gen_release_impl(self._arches, force) File "/usr/bin/mini-dinstall", line 1344, in _gen_release_impl self._do_hash(hash, indexfiles, f) File "/usr/bin/mini-dinstall", line 1150, in _do_hash h = self._get_file_sum(hash, absfile) File "/usr/bin/mini-dinstall", line 1133, in _get_file_sum ret = misc.get_file_sum(self, type, filename) File "/usr/lib/python2.3/site-packages/minidinstall/misc.py", line 51, in get_file_sum ret = _get_external_file_sum(self, type, filename) File "/usr/lib/python2.3/site-packages/minidinstall/misc.py", line 93, in _get_external_file_sum logger.warn("Ignoring missing child proccess") NameError: global name 'logger' is not defined
-rw-r--r--minidinstall/misc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/minidinstall/misc.py b/minidinstall/misc.py
index a3c9489..a942adc 100644
--- a/minidinstall/misc.py
+++ b/minidinstall/misc.py
@@ -90,7 +90,7 @@ def _get_external_file_sum(self, type, filename):
status = child.wait()
except OSError, (errnum, err):
if errnum == 10:
- logger.warn("Ignoring missing child proccess")
+ self._logger.warn("Ignoring missing child proccess")
status = 0
if not (status is None or (os.WIFEXITED(status) and os.WEXITSTATUS(status) == 0)):
if os.WIFEXITED(status):