bstinson / rpms / mozjs60

Forked from rpms/mozjs60 5 years ago
Clone

Blame SOURCES/icu_sources_data.py-Decouple-from-Mozilla-build-system.patch

e43f4b
From: Simon McVittie <smcv@debian.org>
e43f4b
Date: Mon, 9 Oct 2017 09:22:12 +0100
e43f4b
Subject: icu_sources_data.py: Decouple from Mozilla build system
e43f4b
e43f4b
mozpack.path is a wrapper around os.path that normalizes path
e43f4b
separators on Windows, but on Unix we only have one path separator
e43f4b
so there's nothing to normalize. Avoid needing to import all of it.
e43f4b
---
e43f4b
 intl/icu_sources_data.py | 4 +++-
e43f4b
 1 file changed, 3 insertions(+), 1 deletion(-)
e43f4b
e43f4b
diff --git a/intl/icu_sources_data.py b/intl/icu_sources_data.py
e43f4b
index 98c0ccb..8cf9290 100644
e43f4b
--- a/intl/icu_sources_data.py
e43f4b
+++ b/intl/icu_sources_data.py
e43f4b
@@ -19,7 +19,9 @@ import subprocess
e43f4b
 import sys
e43f4b
 import tempfile
e43f4b
 
e43f4b
-from mozpack import path as mozpath
e43f4b
+# Close enough
e43f4b
+import os.path as mozpath
e43f4b
+mozpath.normsep = lambda p: p
e43f4b
 
e43f4b
 
e43f4b
 def find_source_file(dir, filename):