From 6da499d39813d7ba6a6f03b922e6ee4bbe3988ee Mon Sep 17 00:00:00 2001 From: aleth Date: Wed, 23 Mar 2016 22:44:12 +0100 Subject: [PATCH] Bug 1259174 - Fix absolute paths in TEST_HARNESS_FILES. r=mshal --HG-- extra : amend_source : 73b8a4ad68d24ff5f04c17d95423565070aac04b --- python/mozbuild/mozbuild/backend/recursivemake.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/mozbuild/mozbuild/backend/recursivemake.py b/python/mozbuild/mozbuild/backend/recursivemake.py index 1ae09dd5117a..45d1f70505b1 100644 --- a/python/mozbuild/mozbuild/backend/recursivemake.py +++ b/python/mozbuild/mozbuild/backend/recursivemake.py @@ -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: