From fe0796afa0a8d298f347612cfa608921c8b66ddc Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 15 Jul 2017 11:53:36 -0700 Subject: comment --- src/Propellor/Property/Sbuild.hs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit v1.2.3