uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
|
|
@ -0,0 +1,31 @@
|
|||
diff --git a/engine/itb_util.py b/engine/itb_util.py
|
||||
index ded236a..633525a 100755
|
||||
--- a/engine/itb_util.py
|
||||
+++ b/engine/itb_util.py
|
||||
@@ -1876,14 +1876,18 @@ def find_hunspell_dictionary(language):
|
||||
If no dictionary can be found for the requested language,
|
||||
the return value is ('', '').
|
||||
'''
|
||||
- dirnames = [
|
||||
- '/usr/share/hunspell',
|
||||
- '/usr/share/myspell',
|
||||
- '/usr/share/myspell/dicts',
|
||||
- '/usr/local/share/hunspell', # On FreeBSD the dictionaries are here
|
||||
- '/usr/local/share/myspell',
|
||||
- '/usr/local/share/myspell/dicts',
|
||||
- ]
|
||||
+
|
||||
+ if "NIX_HUNSPELL_DIRS" in os.environ:
|
||||
+ dirnames = os.environ["NIX_HUNSPELL_DIRS"].split(":")
|
||||
+ else: # fallback to the original behavior
|
||||
+ dirnames = [
|
||||
+ '/usr/share/hunspell',
|
||||
+ '/usr/share/myspell',
|
||||
+ '/usr/share/myspell/dicts',
|
||||
+ '/usr/local/share/hunspell', # On FreeBSD the dictionaries are here
|
||||
+ '/usr/local/share/myspell',
|
||||
+ '/usr/local/share/myspell/dicts',
|
||||
+ ]
|
||||
dic_path = ''
|
||||
aff_path = ''
|
||||
for language in expand_languages([language]):
|
||||
Loading…
Add table
Add a link
Reference in a new issue