[pony-build] pony-build Cache Dir

Max Laite mlaite at gmail.com
Tue Jan 26 07:52:19 PST 2010


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.


On Sun, Jan 24, 2010 at 10:05 PM, C. Titus Brown <ctb at msu.edu> wrote:

> On Sun, Jan 24, 2010 at 07:06:44PM -0400, Max Laite wrote:
> > Yes, I will move the .pony-build dir creation to its own function.
> >
> > I took the lazy way out at the time, I just ran through a few build
> scripts,
> > deleting the main cache_dir and the repo dirs after each run to test the
> > different cases.....
>
> Nothing wrong with lazy, as long as we go back and fix it :).  Check
> out the term "technical debt"...
>
> > Yes, I need to work on standardizing my indents and comments. Have no
> fear,
> > I will get some consistency by the end of the semester!
>
> Many editors will help you out the indent level -- I use emacs, which takes
> care of a lot of that myself.
>
> > I will look at your script, I need to do some catching up on testing
> stuff
> > the proper way (easy way?).
>
> It's a mildly sticky problem; if it were trivial, I would have set up at
> least
> some client test scripts myself.  What I've decided to start doing is what
> I've
> done with test-git: develop some simple scripts to run obvious tests, and
> then
> integrate them into an automated test suite later.
>
> cheers,
> --titus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/pony-build/attachments/20100126/92e16984/attachment.htm>


More information about the pony-build mailing list