summaryrefslogtreecommitdiff
path: root/src/buildstream/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/utils.py')
-rw-r--r--src/buildstream/utils.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/buildstream/utils.py b/src/buildstream/utils.py
index b5b554ee5..0e2cdeb43 100644
--- a/src/buildstream/utils.py
+++ b/src/buildstream/utils.py
@@ -43,8 +43,7 @@ from ._exceptions import BstError, ErrorDomain
from ._protos.build.bazel.remote.execution.v2 import remote_execution_pb2
# The magic number for timestamps: 2011-11-11 11:11:11
-_magic_timestamp = calendar.timegm([2011, 11, 11, 11, 11, 11])
-
+BST_ARBITRARY_TIMESTAMP = calendar.timegm([2011, 11, 11, 11, 11, 11])
# The separator we use for user specified aliases
_ALIAS_SEPARATOR = ':'
@@ -952,9 +951,9 @@ def _set_deterministic_mtime(directory):
# However, nowadays it is possible at least on gnuish systems
# with with the lutimes glibc function.
if not os.path.islink(pathname):
- os.utime(pathname, (_magic_timestamp, _magic_timestamp))
+ os.utime(pathname, (BST_ARBITRARY_TIMESTAMP, BST_ARBITRARY_TIMESTAMP))
- os.utime(dirname, (_magic_timestamp, _magic_timestamp))
+ os.utime(dirname, (BST_ARBITRARY_TIMESTAMP, BST_ARBITRARY_TIMESTAMP))
# _tempdir()