Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpcdf
obs
osc-plugins
Commits
e34a3079
Commit
e34a3079
authored
Jan 17, 2020
by
Lorenz Hüdepohl
Browse files
Fix update checking, was not done only once per day
parent
9aeea986
Pipeline
#69149
passed with stage
in 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mpcdf_common.py
View file @
e34a3079
...
...
@@ -90,9 +90,10 @@ def check_for_update():
with
open
(
rev_file
,
"r"
)
as
fd
:
server_rev
=
fd
.
read
().
strip
()
if
call
([
"git"
,
"--git-dir"
,
git_dir
,
"merge-base"
,
"--is-ancestor"
,
server_rev
,
"HEAD"
],
stderr
=
DEVNULL
)
==
0
:
# Server rev is older than ours. Check again
update_server_rev
()
if
server_rev
!=
local_rev
:
if
call
([
"git"
,
"--git-dir"
,
git_dir
,
"merge-base"
,
"--is-ancestor"
,
server_rev
,
"HEAD"
],
stderr
=
DEVNULL
)
==
0
:
# Server rev is older than ours. Check again
update_server_rev
()
with
open
(
rev_file
,
"r"
)
as
fd
:
server_rev
=
fd
.
read
().
strip
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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