gnu: gajim: Fix error when GAJIM_PLUGIN_PATH is not set.
Fixes <https://bug.gnu.org/35606> * gnu/packages/messaging.scm (gajim)[arguments]: Handle case when GAJIM_PLUGIN_PATH is unset in add-plugins-dir phase.
This commit is contained in:
parent
70d23edf93
commit
a624c36310
1 changed files with 6 additions and 2 deletions
|
@ -594,8 +594,12 @@ (define-public gajim
|
||||||
(add-after 'unpack 'add-plugin-dirs
|
(add-after 'unpack 'add-plugin-dirs
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "gajim/common/configpaths.py"
|
(substitute* "gajim/common/configpaths.py"
|
||||||
(("_paths\\['PLUGINS_USER'\\]")
|
(("_paths\\['PLUGINS_USER'\\]\\]")
|
||||||
"_paths['PLUGINS_USER'],os.getenv('GAJIM_PLUGIN_PATH')"))
|
"_paths['PLUGINS_USER']] + \
|
||||||
|
([os.getenv('GAJIM_PLUGIN_PATH')] \
|
||||||
|
if os.getenv('GAJIM_PLUGIN_PATH') \
|
||||||
|
and Path(os.getenv('GAJIM_PLUGIN_PATH')).is_dir() \
|
||||||
|
else [])"))
|
||||||
#t))
|
#t))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
|
|
Loading…
Reference in a new issue