bin/autoproj in autoproj-1.1.1 vs bin/autoproj in autoproj-1.1.2

- old
+ new

@@ -295,9 +295,16 @@ Autobuild.do_doc = false if mail_config[:to] Autobuild::Reporting << MailReporter.new(mail_config) end + # First things first, see if we need to update ourselves + osdeps = Autoproj::OSDependencies.load_default + if osdeps.install(%w{autobuild autoproj}) + # We updated autobuild or autoproj themselves ... Restart ! + exec($0, *ARGV) + end + manifest_path = File.join(Autoproj.config_dir, 'manifest') # Load the installation's manifest a first time, to check if we should # update it ... We assume that the OS dependencies for this VCS is already # installed (i.e. that the user did not remove it) manifest = Manifest.load(manifest_path)