From: Barış Metin Date: Tue, 15 Jun 2010 14:01:04 +0000 (+0200) Subject: update build at startup X-Git-Tag: 5.0-rc11~54 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d6b1f879849d4a80440ee99fd193a63e48ebb048;p=build.git update build at startup --- diff --git a/module-tools.py b/module-tools.py index 319346f1..a6605d2d 100755 --- a/module-tools.py +++ b/module-tools.py @@ -484,9 +484,7 @@ that for other purposes than tagging""" % options.workdir print "Checking ...", remote = cls.git_remote_dir(cls.config['build']) local = os.path.join(options.workdir, cls.config['build']) - build = GitRepository.checkout(remote, local, options, depth=1) - if not build.is_clean(): - build.revert() + GitRepository.checkout(remote, local, options, depth=1) print "OK" # store config @@ -511,6 +509,7 @@ that for other purposes than tagging""" % options.workdir print "build module needs a revert" build.revert() print "OK" + build.update() if options.verbose and options.mode not in Main.silent_modes: print '******** Using config'