forked from pool/ibus-table
Add ibus-table_fix_other_tables_compile_error.patch: Fix ibus other tables compile errors(bnc#1160315). OBS-URL: https://build.opensuse.org/request/show/777384 OBS-URL: https://build.opensuse.org/package/show/M17N/ibus-table?expand=0&rev=42
22 lines
1.1 KiB
Diff
22 lines
1.1 KiB
Diff
diff -Nura ibus-table-1.9.21/engine/ibus_table_location.py ibus-table-1.9.21_new/engine/ibus_table_location.py
|
|
--- ibus-table-1.9.21/engine/ibus_table_location.py 2018-08-28 22:36:37.000000000 +0800
|
|
+++ ibus-table-1.9.21_new/engine/ibus_table_location.py 2020-02-19 22:12:51.972000000 +0800
|
|
@@ -73,7 +73,7 @@
|
|
IBUS_TABLE_LOCATION['data_home'] = os.path.join(
|
|
IBUS_TABLE_LOCATION['data_home'], 'ibus-table')
|
|
if not os.access(IBUS_TABLE_LOCATION['data_home'], os.F_OK):
|
|
- os.makedirs(IBUS_TABLE_LOCATION['data_home'])
|
|
+ os.makedirs(IBUS_TABLE_LOCATION['data_home'], exist_ok=True)
|
|
|
|
# $XDG_CACHE_HOME defines the base directory relative to which user
|
|
# specific non-essential data files should be stored. If
|
|
@@ -89,7 +89,7 @@
|
|
IBUS_TABLE_LOCATION['cache_home'] = os.path.join(
|
|
IBUS_TABLE_LOCATION['cache_home'], 'ibus-table')
|
|
if not os.access(IBUS_TABLE_LOCATION['cache_home'], os.F_OK):
|
|
- os.makedirs(IBUS_TABLE_LOCATION['cache_home'])
|
|
+ os.makedirs(IBUS_TABLE_LOCATION['cache_home'], exist_ok=True)
|
|
|
|
class __ModuleInitializer:
|
|
def __init__(self):
|