From d6b1f879849d4a80440ee99fd193a63e48ebb048 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Tue, 15 Jun 2010 16:01:04 +0200 Subject: [PATCH] update build at startup --- module-tools.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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' -- 2.43.0