File tree 1 file changed +11
-8
lines changed
1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -3725,11 +3725,11 @@ def status(i):
3725
3725
if len (lversion )< 3 :
3726
3726
return {'return' :1 , 'error' :'can\' t parse output from server with version' }
3727
3727
3728
- if int (lversion [0 ])> int (version [0 ]) or \
3729
- (int (lversion [0 ])== int (version [0 ]) and int (lversion [1 ])> int (version [1 ])) or \
3730
- (int (lversion [0 ])== int (version [0 ]) and int (lversion [1 ])== int (version [1 ]) and int (lversion [2 ])> int (version [2 ])) or \
3731
- (int (lversion [0 ])== int (version [0 ]) and int (lversion [1 ])== int (version [1 ]) and int (lversion [2 ])== int (version [2 ]) and \
3732
- len (version )> 3 and version [3 ]!= '' and (len (lversion )== 3 or len (lversion )> 3 and lversion [3 ]== '' )):
3728
+ if int (version [0 ])> int (lversion [0 ]) or \
3729
+ (int (version [0 ])== int (lversion [0 ]) and int (version [1 ])> int (lversion [1 ])) or \
3730
+ (int (version [0 ])== int (lversion [0 ]) and int (version [1 ])== int (lversion [1 ]) and int (version [2 ])> int (lversion [2 ])) or \
3731
+ (int (version [0 ])== int (lversion [0 ]) and int (version [1 ])== int (lversion [1 ]) and int (version [2 ])== int (lversion [2 ]) or \
3732
+ ( len (lversion )> 3 and lversion [3 ]!= '' and (len (version )== 3 or len (version )> 3 and version [3 ]== '' ) )):
3733
3733
3734
3734
outdated = 'yes'
3735
3735
@@ -3744,10 +3744,13 @@ def status(i):
3744
3744
u = cfg .get ('ck_web' ,'' )
3745
3745
if u != '' :
3746
3746
out ('' )
3747
- out ('Visit ' + u + ' for more details ...' )
3747
+ out ('Just execute "ck pull all" to update CK or visit ' + u + ' for more details ...' )
3748
3748
3749
- if o == 'con' and outdated != 'yes' :
3750
- out ('Your version is up-to-date: V' + version_str )
3749
+ if o == 'con' :
3750
+ if outdated != 'yes' :
3751
+ out ('Your version is up-to-date: V' + version_str )
3752
+ elif outdated == '' :
3753
+ out ('Problem checking version ...' )
3751
3754
3752
3755
return {'return' :0 , 'outdated' :outdated }
3753
3756
You can’t perform that action at this time.
0 commit comments