From c8cbfcaec29eb3f57af0dfa3067ecbc6b79f5b86 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Thu, 16 Aug 2012 17:00:14 +0800 Subject: [PATCH] Update -u does not upgrade is instance is not installed --- moodle-update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moodle-update.py b/moodle-update.py index 56bd5d4..ef498e6 100755 --- 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')) -- 2.11.0