added checks that the URL of the WC matches the URL from the manifest
changed from using "update" to "switch"
def latest?
at_path do
- self.revision >= self.latest
+ (self.revision >= self.latest) and (@resource.value(:source) == self.sourceurl)
end
end
end
end
+ def sourceurl
+ args = buildargs.push('info')
+ at_path do
+ svn(*args)[/^URL:\s+(\S+)/m, 1]
+ end
+ end
+
def revision
args = buildargs.push('info')
at_path do
end
def revision=(desired)
- args = buildargs.push('update', '-r', desired)
+ args = buildargs.push('switch', '-r', desired, @resource.value(:source))
at_path do
svn(*args)
end