From 42b85c0d4bceb13489c5f12c9e24039c10b132c0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 6 Oct 2006 22:03:40 +0000 Subject: In update_dbentries(), use != rather than "is not" to make sure that updates never occur unnecessarily. svn path=/main/trunk/; revision=4607 --- pym/portage_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym/portage_update.py') diff --git a/pym/portage_update.py b/pym/portage_update.py index f96227789..5f5af809f 100644 --- a/pym/portage_update.py +++ b/pym/portage_update.py @@ -43,7 +43,7 @@ def update_dbentries(update_iter, mydata): orig_content = mycontent for update_cmd in update_iter: mycontent = update_dbentry(update_cmd, mycontent) - if mycontent is not orig_content: + if mycontent != orig_content: updated_items[k] = mycontent return updated_items -- cgit v1.2.3-1-g7c22