[gnome-ostree] build: Don't reconfigure if config.status exists
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] build: Don't reconfigure if config.status exists
- Date: Thu, 16 May 2013 13:02:24 +0000 (UTC)
commit 75f45795bbfd687ffe21fd0c2a4d329de7afe486
Author: Colin Walters <walters verbum org>
Date: Wed May 15 22:00:24 2013 -0400
build: Don't reconfigure if config.status exists
Mainly this is for developers using the local: key.
src/ostree-build-compile-one | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/src/ostree-build-compile-one b/src/ostree-build-compile-one
index 5d0bc2a..1241129 100755
--- a/src/ostree-build-compile-one
+++ b/src/ostree-build-compile-one
@@ -167,13 +167,17 @@ def main(args):
log("Using build directory %r" % (builddir, ))
if not os.path.isdir(builddir):
os.mkdir(builddir)
-
- if use_builddir:
- args = ['../configure']
- else:
- args = ['./configure']
- args.extend(configargs)
- run_sync(args, cwd=builddir)
+
+ config_status = os.path.join(builddir, 'config.status')
+ have_config_status = os.path.exists(config_status)
+
+ if not have_config_status:
+ if use_builddir:
+ args = ['../configure']
+ else:
+ args = ['./configure']
+ args.extend(configargs)
+ run_sync(args, cwd=builddir)
makefile_path = None
for name in ['Makefile', 'makefile', 'GNUmakefile']:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]