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
|
@ -594,8 +594,12 @@ was initially a fork of xmpppy, but uses non-blocking sockets.")
|
|||
(add-after 'unpack 'add-plugin-dirs
|
||||
(lambda _
|
||||
(substitute* "gajim/common/configpaths.py"
|
||||
(("_paths\\['PLUGINS_USER'\\]")
|
||||
"_paths['PLUGINS_USER'],os.getenv('GAJIM_PLUGIN_PATH')"))
|
||||
(("_paths\\['PLUGINS_USER'\\]\\]")
|
||||
"_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))
|
||||
(replace 'check
|
||||
(lambda _
|
||||
|
|
Loading…
Reference in New Issue