sleep_for_mtime_granularity: remove
authorFabian Groffen <grobian@gentoo.org>
Sat, 28 May 2011 09:21:54 +0000 (11:21 +0200)
committerFabian Groffen <grobian@gentoo.org>
Sat, 28 May 2011 09:21:54 +0000 (11:21 +0200)
Remove trails from long gone sleep_for_mtime_granularity, that were
still in the Prefix branch, because some functionality was factored out
in a function in order to be able to easily skip it.

pym/portage/util/env_update.py

index 70b735682f876dd289d0b7da1a0d6feff900dd74..ea3bef19699fe3d7f4ef9e3ceb99b5a832464cf2 100644 (file)
@@ -118,12 +118,9 @@ def env_update(makelinks=1, target_root=None, prev_mtimes=None, contents=None,
                env.update(myconfig)
 
        if EPREFIX == '':
-               sleep_for_mtime_granularity = dolinkingstuff(
-                               target_root, specials, prelink_capable,
+               dolinkingstuff(target_root, specials, prelink_capable,
                                makelinks, contents, prev_mtimes, env)
-       else:
-               sleep_for_mtime_granularity = False
-       writeshellprofile(target_root, env, sleep_for_mtime_granularity)
+       writeshellprofile(target_root, env)
 
 def dolinkingstuff(target_root, specials, prelink_capable, makelinks,
                contents, prev_mtimes, env):
@@ -275,9 +272,7 @@ def dolinkingstuff(target_root, specials, prelink_capable, makelinks,
 
        del specials["LDPATH"]
 
-       return sleep_for_mtime_granularity
-
-def writeshellprofile(target_root, env, sleep_for_mtime_granularity):
+def writeshellprofile(target_root, env):
        penvnotice  = "# THIS FILE IS AUTOMATICALLY GENERATED BY env-update.\n"
        penvnotice += "# DO NOT EDIT THIS FILE. CHANGES TO STARTUP PROFILES\n"
        cenvnotice  = penvnotice[:]