From: fuzzyray Date: Thu, 24 Jul 2008 16:03:19 +0000 (-0000) Subject: Fix equery check to convert mtime to an integer so that comparisions always work. X-Git-Tag: gentoolkit-0.2.4.3~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=65d33c19c85f59f372d34f6eb8a364c0b393f5d2;p=gentoolkit.git Fix equery check to convert mtime to an integer so that comparisions always work. svn path=/; revision=502 --- diff --git a/trunk/ChangeLog b/trunk/ChangeLog index 5e3cb9f..4ec5c13 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,3 +1,8 @@ +2008-07-24: Paul Varner + * equery: Fix equery check to convert mtime to an integer so that + comparisions always work. Thanks to Alexey Parshin for discovering the + problem and providing a patch. (Bug 232803) + 2008-07-22: Paul Varner * gentoolkit: Fix gentoolkit.split_package_name to work with newer portage.catpkgsplit that now returns a tuple instead of a diff --git a/trunk/src/equery/equery b/trunk/src/equery/equery index 9d8f876..ed8c5c4 100755 --- a/trunk/src/equery/equery +++ b/trunk/src/equery/equery @@ -976,7 +976,7 @@ class CmdCheckIntegrity(Command): if self.getMD5sum(file) != md5sum: raise CheckException(file + " has incorrect md5sum") if opts["checkTimestamp"]: - if st.st_mtime != int(mtime): + if int(st.st_mtime) != int(mtime): raise CheckException(file + (" has wrong mtime (is %d, should be %s)" % (st.st_mtime, mtime))) elif type == "sym": # FIXME: nastry strippery; portage should have this fixed!