bstinson / rpms / mozjs60

Forked from rpms/mozjs60 5 years ago
Clone

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

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