In update_dbentries(), use != rather than "is not" to make sure that updates never...
authorZac Medico <zmedico@gentoo.org>
Fri, 6 Oct 2006 22:03:40 +0000 (22:03 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 6 Oct 2006 22:03:40 +0000 (22:03 -0000)
svn path=/main/trunk/; revision=4607

pym/portage_update.py

index f9622778915aa0984668dcd1a2de56fe9978fb61..5f5af809f979f30af47bfc6d5ebcb0ff6fd496ee 100644 (file)
@@ -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