* equery: minor syntactical cleanups.
* equery: minor documentation improvements
* equery: added errors module that will hold various types of internal errors raised.
+ * equery: added try block around on md5sum check, which fails on various conditions like
+ insufficient permission or stale temporary checksum files.
2004-10-17 Marius Mauch <genone@gentoo.org>
* equery: fix for bug #67473 (checking md5sums of prelinked binaries)
mtime = files[file][1]
md5sum = files[file][2]
if opts["checkMD5sum"]:
+ try:
+ actual_checksum = self.getMD5sum(file)
+ except:
+ raise CheckException("Failed to calculate MD5 sum for " + file)
+
if self.getMD5sum(file) != md5sum:
raise CheckException(file + " has incorrect md5sum")
if opts["checkTimestamp"]: