lib/rconf/configurator.rb in rconf-1.0.12 vs lib/rconf/configurator.rb in rconf-1.0.13

- old
+ new

@@ -144,10 +144,16 @@ must_configure = Profile.force_reconfigure? if !must_configure && (only_if.nil? || instance_eval(only_if)) must_configure = (Profile.force_check? || sha != sig) && !check end Platform.dispatch(*args) { :run } if must_configure - Profile.set_configurator_signature(key, sig) unless aborting + + # clear any leftover signature in case of aborting to prevent rconf + # doing nothing on restart. + # + # FIX: there seems to be an issue when a new ruby version is installed + # and rconf aborts and has to be restarted (on Ubuntu?) + Profile.set_configurator_signature(key, aborting ? nil : sig) true end # Called even if configuration is already done for steps that must # always happen, do nothing by default