env.update(myconfig)
if EPREFIX == '':
- dolinkingstuff()
- writeshellprofile()
+ sleep_for_mtime_granularity = dolinkingstuff(
+ target_root, specials, prelink_capable,
+ makelinks, contents)
+ else:
+ sleep_for_mtime_granularity = False
+ writeshellprofile(target_root, env, sleep_for_mtime_granularity)
-def dolinkingstuff():
+def dolinkingstuff(target_root, specials, prelink_capable, makelinks,
+ contents):
# updating this stuff will never work in an offset, other than ROOT
# (e.g. not in Prefix), hence the EPREFIX is not taken into account
# here since this code should never be triggered on an offset install
del specials["LDPATH"]
-def writeshellprofile():
+ return sleep_for_mtime_granularity
+
+def writeshellprofile(target_root, env, sleep_for_mtime_granularity):
penvnotice = "# THIS FILE IS AUTOMATICALLY GENERATED BY env-update.\n"
penvnotice += "# DO NOT EDIT THIS FILE. CHANGES TO STARTUP PROFILES\n"
cenvnotice = penvnotice[:]