projects
/
mdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1bf007
)
Update -u does not upgrade is instance is not installed
author
Frederic Massart
<fred@moodle.com>
Thu, 16 Aug 2012 09:00:14 +0000
(17:00 +0800)
committer
Frederic Massart
<fred@moodle.com>
Thu, 16 Aug 2012 09:00:14 +0000
(17:00 +0800)
moodle-update.py
patch
|
blob
|
history
diff --git
a/moodle-update.py
b/moodle-update.py
index
56bd5d4
..
ef498e6
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 args.upgrade:
+ if
M.isInstalled() and
args.upgrade:
M.upgrade()
except Exception as e:
debug('Error during the update of %s' % M.get('identifier'))