Since none of the code is written to handle it, never return a tuple from new_protect...
authorZac Medico <zmedico@gentoo.org>
Mon, 4 Sep 2006 17:59:09 +0000 (17:59 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 4 Sep 2006 17:59:09 +0000 (17:59 -0000)
svn path=/main/trunk/; revision=4400

pym/portage_util.py

index 54d221d8fcb232db980cdb2d287dc80748b8656e..c44360200006c764c214a32a1860a01d8f1866ac 100644 (file)
@@ -904,9 +904,4 @@ def new_protect_filename(mydest, newmd5=None):
                if portage_checksum.perform_md5(
                        os.path.join(real_dirname, last_pfile)) == newmd5:
                        return old_pfile
-               else:
-                       return new_pfile
-       elif newmd5:
-               return new_pfile
-       else:
-               return (new_pfile, old_pfile)
+       return new_pfile