lib/autoproj/package_definition.rb in autoproj-2.0.3 vs lib/autoproj/package_definition.rb in autoproj-2.1.0.rc1
- old
+ new
@@ -67,7 +67,17 @@
user_blocks << block
if setup?
block.call(autobuild)
end
end
+
+ # Whether this package is already checked out
+ def checked_out?
+ autobuild.checked_out?
+ end
+
+ # Add another package as a dependency of this one
+ def depends_on(pkg)
+ autobuild.depends_on(pkg.autobuild)
+ end
end
end