projects
/
mdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9d8be4
)
Do not perform upgrade on older versions
author
Frederic Massart
<fred@moodle.com>
Mon, 3 Sep 2012 08:26:21 +0000
(16:26 +0800)
committer
Frederic Massart
<fred@moodle.com>
Mon, 3 Sep 2012 08:26:21 +0000
(16:26 +0800)
moodle-update.py
patch
|
blob
|
history
diff --git
a/moodle-update.py
b/moodle-update.py
index
ef498e6
..
11f36a1
100755
(executable)
--- a/
moodle-update.py
+++ b/
moodle-update.py
@@
-63,7
+63,7
@@
for M in Mlist:
debug('Updating %s...' % M.get('identifier'))
try:
M.update()
- if M.isInstalled() and args.upgrade:
+ if M.isInstalled() and args.upgrade
and M.get('branch') != 'master' and int(M.get('branch')) < 20
:
M.upgrade()
except Exception as e:
debug('Error during the update of %s' % M.get('identifier'))