mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-23 21:17:11 -05:00
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
|
||||
(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 a new issue