[pony-build] pony-build Cache Dir

C. Titus Brown ctb at msu.edu
Tue Jan 26 21:30:33 PST 2010


On Tue, Jan 26, 2010 at 11:52:19AM -0400, Max Laite wrote:
> Get some feedback on the following....
> 
> For the cache_dir creation....we make a function to do the tests to see if
> ~/.pony_build exists...
> 
> 1) If it does just return true
> 2) If it doesn't make it and return true.
> 3) Return false if it cant. Just to be complete i guess.
> 
> The code for this should be trivial.
> 
> Inside the *Clone classes, you just call it before you start running the
> checkout stuff, or maybe just have it run before any of the *Clone classes
> are called. Either way, .pony-build will always be created if it is not
> there...then inside the different classes you just do the tests for the
> repo_dir and do the initial co's when needed.
> 
> Those are my thoughts on the next step for "prettying" the implementation
> up.

Hey Max,

how about having the function raise an exception if it can't make the
directory?  I think that should be a solid fail :)

I think it should be called from within each of the Checkout classes,
as long as use_cache=True.

cheers,
--titus



More information about the pony-build mailing list