* Fix portage.cache.template.database.__getitem__() to validate the _mtime_
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 06:31:05 +0000 (06:31 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 06:31:05 +0000 (06:31 -0000)
commit3a3bcf9c361b7344a5ee25db579b6cf042901ca3
tree193199e5c2fc4bc1d2e1f36310b0ae4dc89faf9e
parent2bb4426d9cb8e02c3d748fd2513149ab9117d461
* Fix portage.cache.template.database.__getitem__() to validate the _mtime_
  field and raise a CacheCorruption exception if necessary.
* Make _mtime_ and _eclasses_ validation code in portdbapi and mirror_cache()
  assume that these fields are the correct type (otherwise a CacheCorruption
  exeception should be raised earlier).
* Fix the sqlite module to implement _getitem() so that it properly inherits
  __getitem__() _mtime_ and _eclasses_ handling. (trunk r12735)

svn path=/main/branches/2.1.6/; revision=12984
pym/portage/cache/sqlite.py
pym/portage/cache/template.py
pym/portage/cache/util.py
pym/portage/dbapi/porttree.py