Add a vardbapi._pkgs_changed attribute to use instead of PORTAGE_COUNTER_HASH
authorZac Medico <zmedico@gentoo.org>
Sat, 5 Sep 2009 22:25:05 +0000 (22:25 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 5 Sep 2009 22:25:05 +0000 (22:25 -0000)
commitcc8204e586b20c4c4b45dba9bd5688aa911d1a3b
tree380b4bcb85f4d3f785fab9a41e8fd0c297ba8d98
parent8c042c0203c4635ab15061e002b108227f1d3fdd
Add a vardbapi._pkgs_changed attribute to use instead of PORTAGE_COUNTER_HASH
for emerge to check whether any packages have been added/removed. This is an
optimization, since vardbapi._counter_hash() can be somewhat slow on embedded
systems. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for
reporting.

svn path=/main/trunk/; revision=14203
pym/_emerge/main.py
pym/portage/__init__.py
pym/portage/dbapi/vartree.py