From 828c0b56d0bf37fa238008491eb8be2e46f40992 Mon Sep 17 00:00:00 2001 From: Guido Guenther Date: Sat, 23 Aug 2008 17:41:09 +0200 Subject: [PATCH] print path to changes file on missing md5sums Closes: #496229 Signed-off-by: Christoph Goehre --- minidinstall/ChangeFile.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'minidinstall') diff --git a/minidinstall/ChangeFile.py b/minidinstall/ChangeFile.py index ca88112..35b96fa 100644 --- a/minidinstall/ChangeFile.py +++ b/minidinstall/ChangeFile.py @@ -38,9 +38,11 @@ class ChangeFile(DpkgControl.DpkgParagraph): def __init__(self): DpkgControl.DpkgParagraph.__init__(self) self._logger = logging.getLogger("mini-dinstall") + self._file = '' def load_from_file(self, filename): - f = SignedFile.SignedFile(open(filename)) + self._file = filename + f = SignedFile.SignedFile(open(self._file)) self.load(f) f.close() @@ -65,7 +67,7 @@ class ChangeFile(DpkgControl.DpkgParagraph): try: self[hashes[hash][0]] except KeyError: - self._logger.warn("Can't find %s checksums in changes file" % hash) + self._logger.warn("Can't find %s checksums in changes file '%s'" % (hash, os.path.basename(self._file))) hashes_checked.pop(hash) for hash in hashes_checked: -- cgit v1.2.3