lib/autobuild/import/darcs.rb in autobuild-0.6.3 vs lib/autobuild/import/darcs.rb in autobuild-0.6.4
- old
+ new
@@ -13,9 +13,13 @@
end
private
def update(package)
+ if !File.directory?( File.join(package.srcdir, '_darcs') )
+ raise ConfigException, "#{package.srcdir} is not a Darcs repository"
+ end
+
Subprocess.run(package.name, :import, @program,
'pull', '--all', "--repodir=#{package.srcdir}", '--set-scripts-executable', @source, *@pull)
end
def checkout(package)