Skip to content

Commit

Permalink
Reintroduce deprecated workdir property.
Browse files Browse the repository at this point in the history
It is unfortunatley named, but dropping it now doesn't provide a clear
migration path. Supporting both for at least a version allows smoother
migration.
  • Loading branch information
tomprince committed Jun 5, 2013
1 parent 1d8e005 commit eb8526c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions master/buildbot/process/build.py
Expand Up @@ -197,11 +197,11 @@ def setupSlaveBuilder(self, slavebuilder):
buildslave_properties = slavebuilder.slave.properties
self.getProperties().updateFromProperties(buildslave_properties)
if slavebuilder.slave.slave_basedir:
self.setProperty("builddir",
self.path_module.join(
slavebuilder.slave.slave_basedir,
self.builder.config.slavebuilddir),
"Slave")
builddir = self.path_module.join(
slavebuilder.slave.slave_basedir,
self.builder.config.slavebuilddir),
self.setProperty("builddir", builddir, "slave")
self.setProperty("workdir", builddir, "slave (deprecated)")

self.slavename = slavebuilder.slave.slavename
self.build_status.setSlavename(self.slavename)
Expand Down
1 change: 1 addition & 0 deletions master/docs/relnotes/index.rst
Expand Up @@ -85,6 +85,7 @@ Deprecations, Removals, and Non-Compatible Changes

* The ``workdir`` build property has been renamed to ``builddir``.
This change accurately reflects its content; the term "workdir" means something different.
``workdir`` is currently still supported for backwards compatability, but will be removed eventually.

* The ``Blocker`` step has been removed.

Expand Down

0 comments on commit eb8526c

Please sign in to comment.