Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SickRage-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
SickRage-1
Commits
4a0caa59
Commit
4a0caa59
authored
Sep 30, 2015
by
Fernando
Browse files
Options
Downloads
Patches
Plain Diff
Fix SiCKRAGETV/sickrage-issues/issues/2905
parent
1606ffbf
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sickbeard/versionChecker.py
+6
-6
6 additions, 6 deletions
sickbeard/versionChecker.py
with
6 additions
and
6 deletions
sickbeard/versionChecker.py
+
6
−
6
View file @
4a0caa59
...
@@ -164,10 +164,10 @@ class CheckVersion:
...
@@ -164,10 +164,10 @@ class CheckVersion:
logger
.
log
(
u
"
We can
'
t proceed with the update. New update has a old DB version. It
'
s not possible to downgrade
"
,
logger
.
ERROR
)
logger
.
log
(
u
"
We can
'
t proceed with the update. New update has a old DB version. It
'
s not possible to downgrade
"
,
logger
.
ERROR
)
return
False
return
False
else
:
else
:
logger
.
log
(
u
"
We can
'
t proceed with the update. Unable to check remote DB version
"
,
logger
.
ERROR
)
logger
.
log
(
u
"
We can
'
t proceed with the update. Unable to check remote DB version
. Error: %s
"
%
result
,
logger
.
ERROR
)
return
False
return
False
except
:
except
Exception
as
e
:
logger
.
log
(
u
"
We can
'
t proceed with the update. Unable to compare DB version
"
,
logger
.
ERROR
)
logger
.
log
(
u
"
We can
'
t proceed with the update. Unable to compare DB version
. Error: %s
"
%
repr
(
e
)
,
logger
.
ERROR
)
return
False
return
False
def
postprocessor_safe
(
self
):
def
postprocessor_safe
(
self
):
...
@@ -199,6 +199,7 @@ class CheckVersion:
...
@@ -199,6 +199,7 @@ class CheckVersion:
def
getDBcompare
(
self
):
def
getDBcompare
(
self
):
try
:
try
:
self
.
updater
.
need_update
()
cur_hash
=
str
(
self
.
updater
.
get_newest_commit_hash
())
cur_hash
=
str
(
self
.
updater
.
get_newest_commit_hash
())
assert
len
(
cur_hash
)
is
40
,
"
Commit hash wrong length: %s hash: %s
"
%
(
len
(
cur_hash
),
cur_hash
)
assert
len
(
cur_hash
)
is
40
,
"
Commit hash wrong length: %s hash: %s
"
%
(
len
(
cur_hash
),
cur_hash
)
...
@@ -216,9 +217,8 @@ class CheckVersion:
...
@@ -216,9 +217,8 @@ class CheckVersion:
return
'
equal
'
return
'
equal
'
else
:
else
:
return
'
downgrade
'
return
'
downgrade
'
except
Exception
:
except
Exception
as
e
:
raise
return
repr
(
e
)
return
'
error
'
def
find_install_type
(
self
):
def
find_install_type
(
self
):
"""
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment