Eliminate a redundant os.path.join() call.
authorZac Medico <zmedico@gentoo.org>
Wed, 2 Apr 2008 18:06:42 +0000 (18:06 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 2 Apr 2008 18:06:42 +0000 (18:06 -0000)
svn path=/main/trunk/; revision=9678

pym/portage/util.py

index fae0d63fc210a7883f1e5219944bfd8000430def..87332f42e821acd22c6ba9f2b339b60a05140d63 100644 (file)
@@ -1073,8 +1073,7 @@ def new_protect_filename(mydest, newmd5=None):
        if last_pfile and newmd5:
                import portage.checksum
                try:
-                       last_pfile_md5 = portage.checksum.perform_md5(
-                               os.path.join(real_dirname, last_pfile))
+                       last_pfile_md5 = portage.checksum.perform_md5(old_pfile)
                except FileNotFound:
                        # The file suddenly disappeared or it's a broken symlink.
                        pass