Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gajim-plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
56
Issues
56
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim-plugins
Commits
1e04f92a
Commit
1e04f92a
authored
Aug 03, 2017
by
Weblate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[plugin_installer] do not update plugin if it's not compatible with
current Gajim version. Fixes #225
parent
346da609
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
plugin_installer/plugin_installer.py
plugin_installer/plugin_installer.py
+7
-1
No files found.
plugin_installer/plugin_installer.py
View file @
1e04f92a
...
...
@@ -450,7 +450,13 @@ class DownloadAsync(threading.Thread):
for
plugin
in
plugin_list
:
local_version
=
get_local_version
(
plugin
[
'name'
])
if
local_version
:
if
V
(
plugin
[
'version'
])
>
V
(
local_version
):
gajim_v
=
V
(
gajim
.
config
.
get
(
'version'
))
min_v
=
plugin
.
get
(
'min_gajim_version'
,
None
)
min_v
=
V
(
min_v
)
if
min_v
else
gajim_v
max_v
=
plugin
.
get
(
'max_gajim_version'
,
None
)
max_v
=
V
(
max_v
)
if
max_v
else
gajim_v
if
(
V
(
plugin
[
'version'
])
>
V
(
local_version
))
and
\
gajim_v
>=
min_v
and
gajim_v
<=
max_v
:
to_update
.
append
(
plugin
[
'name'
])
GLib
.
idle_add
(
self
.
plugin
.
warn_update
,
to_update
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment