summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2018-08-01 20:59:07 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2018-08-02 19:00:52 -0700
commit43c77ac3cb819ebfc8a35aa7df6012c8fcd3ec4a (patch)
tree8afd7d4a60deabed9103f2c87a7256321c325c32 /lib
parent1ec06e61114ef8eb69b96491d9f7f09707dafc20 (diff)
downloadspack-43c77ac3cb819ebfc8a35aa7df6012c8fcd3ec4a.tar.gz
spack-43c77ac3cb819ebfc8a35aa7df6012c8fcd3ec4a.tar.bz2
spack-43c77ac3cb819ebfc8a35aa7df6012c8fcd3ec4a.tar.xz
spack-43c77ac3cb819ebfc8a35aa7df6012c8fcd3ec4a.zip
libdwarf: remove use of hide_files()
- This was a nasty workaround due to the way our compiler wrappers used to work. We don't want to have to modify our elfutils installation to install libdwarf. - Since cd9691de5, we no longer need this because the package will always come before dependencies in our include order.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/llnl/util/filesystem.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/spack/llnl/util/filesystem.py b/lib/spack/llnl/util/filesystem.py
index f43745a551..ace6cfded6 100644
--- a/lib/spack/llnl/util/filesystem.py
+++ b/lib/spack/llnl/util/filesystem.py
@@ -60,7 +60,6 @@ __all__ = [
'fix_darwin_install_name',
'force_remove',
'force_symlink',
- 'hide_files',
'install',
'install_tree',
'is_exe',
@@ -392,18 +391,6 @@ def replace_directory_transaction(directory_name, tmp_root=None):
tty.debug('TEMPORARY DIRECTORY DELETED [{0}]'.format(tmp_dir))
-@contextmanager
-def hide_files(*file_list):
- try:
- baks = ['%s.bak' % f for f in file_list]
- for f, bak in zip(file_list, baks):
- shutil.move(f, bak)
- yield
- finally:
- for f, bak in zip(file_list, baks):
- shutil.move(bak, f)
-
-
def hash_directory(directory):
"""Hashes recursively the content of a directory.