Bug 1259174 - Fix absolute paths in TEST_HARNESS_FILES. r=mshal

--HG--
extra : amend_source : 73b8a4ad68d24ff5f04c17d95423565070aac04b
This commit is contained in:
aleth 2016-03-23 22:44:12 +01:00
Родитель 63c2afbc28
Коммит 6da499d398
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -1246,7 +1246,11 @@ class RecursiveMakeBackend(CommonBackend):
"SourcePath objects in %s. Path is: %s" % (
type(obj), f
))
install_manifest.add_pattern_symlink(f.srcdir, f, path)
if f.startswith('/'):
basepath = f.full_path.rstrip('*')
install_manifest.add_pattern_symlink(basepath, '*', path)
else:
install_manifest.add_pattern_symlink(f.srcdir, f, path)
else:
install_manifest.add_symlink(f.full_path, dest)
else: