Avoid running configure operation twice - close #156
This commit is contained in:
1 parent
e3ea429253
commit
b932380b3b
3 files changed
+25
-8
No files matched your search
@@ -207,15 +207,18 @@ module Rscons
|
||||
#
|
||||
# @return [void]
|
||||
def configure
|
||||
co = ConfigureOp.new(@script)
|
||||
begin
|
||||
@script.configure(co)
|
||||
rescue RsconsError => e
|
||||
co.close(false)
|
||||
raise e
|
||||
unless @_configured
|
||||
@_configured = true
|
||||
co = ConfigureOp.new(@script)
|
||||
begin
|
||||
@script.configure(co)
|
||||
rescue RsconsError => e
|
||||
co.close(false)
|
||||
raise e
|
||||
end
|
||||
Cache.instance["configuration_data"]["enabled_variants"] = @enabled_variants
|
||||
co.close(true)
|
||||
end
|
||||
Cache.instance["configuration_data"]["enabled_variants"] = @enabled_variants
|
||||
co.close(true)
|
||||
end
|
||||
|
||||
# Remove installed files.
|
||||
|
||||
Reference in new issue
Block a user