EbuildPhase: simplify utime args
authorZac Medico <zmedico@gentoo.org>
Sun, 9 Sep 2012 01:07:16 +0000 (18:07 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 9 Sep 2012 01:07:16 +0000 (18:07 -0700)
pym/_emerge/EbuildPhase.py

index c4881d465490a9f63a82448628fb9b23ea4e93c7..84e80189844795d766e5f7e6af6f5dbcd712baa7 100644 (file)
@@ -5,7 +5,6 @@ import gzip
 import io
 import sys
 import tempfile
-import time
 
 from _emerge.AsynchronousLock import AsynchronousLock
 from _emerge.BinpkgEnvExtractor import BinpkgEnvExtractor
@@ -218,8 +217,7 @@ class EbuildPhase(CompositeTask):
                        # Bump WORKDIR timestamp, in case tar gave it a timestamp
                        # that will interfere with distfiles / WORKDIR timestamp
                        # comparisons as reported in bug #332217.
-                       timestamp = time.time()
-                       os.utime(settings["WORKDIR"], (timestamp, timestamp))
+                       os.utime(settings["WORKDIR"], None)
                elif self.phase == "install":
                        out = io.StringIO()
                        _post_src_install_write_metadata(settings)