Skip to content

Instantly share code, notes, and snippets.

@khyperia
Last active June 20, 2019 17:42
Show Gist options
  • Save khyperia/c07cf821bd00d27430d69f20c0001bed to your computer and use it in GitHub Desktop.
Save khyperia/c07cf821bd00d27430d69f20c0001bed to your computer and use it in GitHub Desktop.
diff --git a/moz.configure b/moz.configure
index 2484ad553645..b15ef790e420 100755
--- a/moz.configure
+++ b/moz.configure
@@ -645,14 +645,14 @@ def config_status_deps(build_env, build_project):
topsrcdir = build_env.topsrcdir
topobjdir = build_env.topobjdir
- if not build_env.topobjdir.endswith('js/src'):
+ if 'js/src' not in build_env.topobjdir:
extra_deps = [
os.path.join(topsrcdir, build_project, 'confvars.sh'),
os.path.join(topobjdir, '.mozconfig.json'),
]
else:
# mozconfig changes may impact js configure.
- extra_deps = [os.path.join(topobjdir[:-7], '.mozconfig.json')]
+ extra_deps = [os.path.join(topobjdir, '.mozconfig.json')]
return list(__sandbox__._all_paths) + extra_deps + [
os.path.join(topsrcdir, 'CLOBBER'),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment