diff options
author | Guido Guenther <agx@sigxcpu.org> | 2008-08-23 17:41:09 +0200 |
---|---|---|
committer | Christoph Goehre <christoph.goehre@gmx.de> | 2008-09-20 18:17:57 +0200 |
commit | 828c0b56d0bf37fa238008491eb8be2e46f40992 (patch) | |
tree | f0693899ba794af7e01f1a0c07854308f1d33556 | |
parent | a4cc92989da6619456a69f8d176e0986c4935496 (diff) | |
download | mini-dinstall-828c0b56d0bf37fa238008491eb8be2e46f40992.tar.bz2 mini-dinstall-828c0b56d0bf37fa238008491eb8be2e46f40992.tar.xz mini-dinstall-828c0b56d0bf37fa238008491eb8be2e46f40992.tar.zst |
[PATCH] print path to changes file on missing md5sums
Closes: #496229
Signed-off-by: Christoph Goehre <christoph.goehre@gmx.de>
-rw-r--r-- | minidinstall/ChangeFile.py | 6 |
1 files changed, 4 insertions, 2 deletions
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: |