On 2012-03-01 10:07, Damien Churchill wrote:
> On 1 March 2012 00:13, David C. Rankin <[email protected]> wrote:
>>  Possible? Or would the solution be to set the local copy of the git tree up
>> inside a apache (or whatever it takes) and pretend to run a local copy? Even
>> then, there would be no way to check for its existence from inside the 
>> chroot?
>>
> 
> You could mount --bind the location of your local git repositories to
> a point inside your chroot, that's probably the quickest and simplest
> way of doing it, although it offers no protection of your git
> repositories from being wiped out from within the chroot.

Or you could run `git daemon` on the outside, then change PKGBUILD to
use <git://localhost/path/to/repo/> for read-only access.

The check would be simple: 1) try cloning directly to $srcdir; 2) if it
fails, clone upstream instead.

-- 
Mantas Mikulėnas <[email protected]>

Reply via email to