Package: mini-dinstall
Version: 0.6.25
Severity: wishlist
Tags: patch
Possible patch attached. Helpful if you upload several packages at once.
-- Guido
>From f932c7de8ac07f10dcb433a3e5fee77ce119d89f Mon Sep 17 00:00:00 2001
From: Guido Guenther <[EMAIL PROTECTED]>
Date: Sat, 23 Aug 2008 17:41:09 +0200
Subject: [PATCH] print path to changes file on missing md5sums
---
minidinstall/ChangeFile.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/minidinstall/ChangeFile.py b/minidinstall/ChangeFile.py
index 3b89b34..6c86af4 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:
--
1.5.6.3