diff options
| author | Sean Whitton <spwhitton@spwhitton.name> | 2017-07-15 11:53:36 -0700 |
|---|---|---|
| committer | Sean Whitton <spwhitton@spwhitton.name> | 2017-07-15 11:53:36 -0700 |
| commit | fe0796afa0a8d298f347612cfa608921c8b66ddc (patch) | |
| tree | 85e8b3eba263784d5d9ad0cfe45d446b4d50771a | |
| parent | 4fbee5d7bd50b75aac51f9bce4f0a232bd5e2d3e (diff) | |
comment
| -rw-r--r-- | src/Propellor/Property/Sbuild.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Propellor/Property/Sbuild.hs b/src/Propellor/Property/Sbuild.hs index a1db861f..4f3fcc26 100644 --- a/src/Propellor/Property/Sbuild.hs +++ b/src/Propellor/Property/Sbuild.hs @@ -187,6 +187,16 @@ built s@(SbuildSchroot suite arch) mirror cc = , intercalate "," commandPrefix ) + -- set the apt proxy inside the chroot. If the host has an apt proxy + -- set, assume that it does some sort of caching. Otherwise, set up a + -- local apt-cacher-ng instance + -- + -- (if we didn't assume that the apt proxy does some sort of caching, + -- we'd need to complicate the Apt.HostAptProxy type to indicate whether + -- the proxy caches, and if it doesn't, set up apt-cacher-ng as an + -- intermediary proxy between the chroot's apt and the Apt.HostAptProxy + -- proxy. This complexity is more likely to cause problems than help + -- anyone) proxyCacher :: Property DebianLike proxyCacher = property' "set schroot apt proxy" $ \w -> do proxyInfo <- getProxyInfo |
