Yea, I guess I pretty much knew that already. Hacked something together that works. Need to get a couple more git/svn repo projects to test it though, just to be sure. Will push to git tomorrow or weekend and let you know so you can check it out.<br>
<br>Max<br><br><div class="gmail_quote">On Thu, Jan 21, 2010 at 9:54 PM, C. Titus Brown <span dir="ltr"><<a href="mailto:ctb@msu.edu">ctb@msu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Thu, Jan 21, 2010 at 08:52:56PM -0400, Max Laite wrote:<br>
> # now, do a clone, from either the parent OR the local cache<br>
> location = self.repository<br>
> if os.path.isdir(cache_dir):<br>
> location = cache_dir<br>
><br>
> cmdlist = ['git', 'clone', self.repository]<br>
> (ret, out, err) = _run_command(cmdlist)<br>
><br>
> self.results_dict['clone'] = \<br>
> dict(status=ret, output=out, errout=err,<br>
> command=str(cmdlist))<br>
> if ret != 0:<br>
> return<br>
><br>
> print cmdlist, out<br>
><br>
><br>
> My assumption for this was that it does a clone to the temp directory or<br>
> wherever it was doing the install from locally. It checks to see if the<br>
> cache_dir exists and if it does, it does the clone from there so that you<br>
> don't use up the repo's bandwidth. 'location' is never used though, so it<br>
> just pulls from the online repo anyways.....Just looking for some<br>
> clarification....<br>
><br>
> As a note i have two variables for cache_dir now, for use in creation if it<br>
> doesn't exist....One that holds the info for if ~/.pony-build exists and one<br>
> to store path to the individual repo eg. ~/.pony-build/figleaf ........<br>
><br>
> The code above is unedited......<br>
><br>
> Don't forget to CC list, whoever responds.<br>
<br>
</div></div>Hi Max,<br>
<br>
the logic for the code checkout should be something like this:<br>
<br>
--<br>
<br>
if cache directory exists:<br>
update cache directory from main repository<br>
else:<br>
create cache directory by doing a clean checkout from main repository<br>
<br>
copy cache directory into current working space<br>
---<br>
<br>
not a direct answer but I think it gets at your question -- does it?<br>
<br>
cheers,<br>
--titus<br>
<font color="#888888">--<br>
C. Titus Brown, <a href="mailto:ctb@msu.edu">ctb@msu.edu</a><br>
</font></blockquote></div><br>