]> git.tdb.fi Git - builder.git/commitdiff
Call prepare_build before returning to save package configuration
authorMikko Rasa <tdb@tdb.fi>
Mon, 16 Jul 2012 20:56:40 +0000 (23:56 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 16 Jul 2012 23:30:03 +0000 (02:30 +0300)
source/builder.cpp

index 5909834ab411aa6bee12ac6b2bce18a734b1505b..209321224db7c3966195d848cbf712d01211aa50 100644 (file)
@@ -251,12 +251,12 @@ int Builder::main()
                return 0;
        }
 
-       if(conf_only)
-               return 0;
-
        if(!prepare_build())
                return 1;
 
+       if(conf_only)
+               return 0;
+
        logger.log("environment", format("Building on %s, for %s%s", native_arch.get_name(),
                current_arch->get_name(), (current_arch->is_native() ? " (native)" : "")));
        logger.log("environment", format("Prefix is %s", prefix));