diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2020-04-28 14:53:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 14:53:22 +0200 |
commit | a540e36922daa82b3383bda0c7901b22be9bd730 (patch) | |
tree | b6063ce5a2393f35dc770947b3ac77c6b3099392 /lib | |
parent | 9615ac42cf06349137a2bf68495187f7525084a1 (diff) | |
download | spack-a540e36922daa82b3383bda0c7901b22be9bd730.tar.gz spack-a540e36922daa82b3383bda0c7901b22be9bd730.tar.bz2 spack-a540e36922daa82b3383bda0c7901b22be9bd730.tar.xz spack-a540e36922daa82b3383bda0c7901b22be9bd730.zip |
relocate: remove an assertion in _make_relative (#16351)
This was an oversight in #15654 since `os.path.isfile`
checks that the something is a file in the current
filesystem.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/relocate.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/spack/spack/relocate.py b/lib/spack/spack/relocate.py index 41770103b0..41faf273cd 100644 --- a/lib/spack/spack/relocate.py +++ b/lib/spack/spack/relocate.py @@ -140,10 +140,6 @@ def _make_relative(reference_file, path_root, paths): Returns: List of relative paths """ - # Check prerequisites of the function - msg = "{0} is not a file".format(reference_file) - assert os.path.isfile(reference_file), msg - start_directory = os.path.dirname(reference_file) pattern = re.compile(path_root) relative_paths = [] |