lib/autobuild/import/darcs.rb in autobuild-1.12.0 vs lib/autobuild/import/darcs.rb in autobuild-1.12.1

- old
+ new

@@ -23,18 +23,19 @@ private def update(package, options = Hash.new) # :nodoc: if options[:only_local] package.warn "%s: the darcs importer does not support local updates, skipping" - return + return false end if !File.directory?( File.join(package.srcdir, '_darcs') ) raise ConfigException.new(package, 'import'), "#{package.srcdir} is not a Darcs repository" end package.run(:import, @program, 'pull', '--all', "--repodir=#{package.srcdir}", '--set-scripts-executable', @source, *@pull, retry: true) + true # no easy to know if package was updated, keep previous behavior end def checkout(package, options = Hash.new) # :nodoc: basedir = File.dirname(package.srcdir) unless File.directory?(basedir)