[pony-build] Code Question

Max Laite mlaite at gmail.com
Thu Jan 21 16:52:56 PST 2010


 # now, do a clone, from either the parent OR the local cache
        location = self.repository
        if os.path.isdir(cache_dir):
            location = cache_dir

        cmdlist = ['git', 'clone', self.repository]
        (ret, out, err) = _run_command(cmdlist)

        self.results_dict['clone'] = \
                 dict(status=ret, output=out, errout=err,
                      command=str(cmdlist))
        if ret != 0:
            return

        print cmdlist, out


My assumption for this was that it does a clone to the temp directory or
wherever it was doing the install from locally. It checks to see if the
cache_dir exists and if it does, it does the clone from there so that you
don't use up the repo's bandwidth. 'location' is never used though, so it
just pulls from the online repo anyways.....Just looking for some
clarification....

As a note i have two variables for cache_dir now, for use in creation if it
doesn't exist....One that holds the info for if ~/.pony-build exists and one
to store path to the individual repo eg. ~/.pony-build/figleaf ........

The code above is unedited......

Don't forget to CC list, whoever responds.

Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/pony-build/attachments/20100121/c4f8856f/attachment.htm>


More information about the pony-build mailing list