Opened 16 years ago
Closed 15 years ago
#325 closed enhancement (fixed)
[PATCH] working.directory property for build recipies
Reported by: | shendric@… | Owned by: | osimons |
---|---|---|---|
Priority: | major | Milestone: | 0.6 |
Component: | Build slave | Version: | dev |
Keywords: | Cc: | shendric@… | |
Operating System: | BSD |
Description
Is it possible to add another property for build recipes that has the absolute path to the directory being used for running the recipe? I'm using a tool that needs an absolute path, but doesn't handle a relative path (to the current working directory) well.
Attachments (1)
Change History (9)
comment:1 Changed 16 years ago by shendric@…
- Cc shendric@… added
comment:2 Changed 16 years ago by shendric@…
Changed 16 years ago by shendric@…
Patch to add a variable for the working directory a slave is using for the build.
comment:3 Changed 16 years ago by anonymous
- Component changed from General to Build slave
comment:4 Changed 16 years ago by anonymous
- Summary changed from working.directory property for build recipies to [PATCH] working.directory property for build recipies
comment:5 Changed 15 years ago by osimons
- Owner changed from cmlenz to osimons
I can see the need for this. Remember seeing some docs about this as well, so need to make sure docs are updated at the same time.
I'll put it on my todo.
comment:6 Changed 15 years ago by anonymous
Any possibility this will be incorporated into the trunk revision any time soon? I have an immediate need for this and would rather I not have to patch all future revisions...
comment:7 Changed 15 years ago by osimons
Could you try this alternative patch against latest trunk?
-
bitten/recipe.py
a b 56 56 self.output = [] 57 57 self.basedir = os.path.realpath(self.config.interpolate(basedir, 58 58 **self.vars)) 59 self.vars['basedir'] = self.basedir 59 60 60 61 def run(self, step, namespace, name, attr): 61 62 """Run the specified recipe command.
comment:8 Changed 15 years ago by osimons
- Resolution set to fixed
- Status changed from new to closed
Committed as part of [685].
The following patch produces the desired result for the following branch:
http://svn.edgewall.org/repos/bitten/branches/experimental/trac-0.11
It uses 'basedir' instead of 'working.directory'. I'm indifferent on the name to use.
I hope this helps the enhancement make its way in to the repository :)
Thanks!