From 3f2854885a1f7618b6e697fa461d9e31eec1697f Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 16 May 2016 15:03:37 -0700 Subject: Sbuild.updated --- src/Propellor/Property/Sbuild.hs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/Propellor/Property/Sbuild.hs') diff --git a/src/Propellor/Property/Sbuild.hs b/src/Propellor/Property/Sbuild.hs index 58e56239..0f4ebf25 100644 --- a/src/Propellor/Property/Sbuild.hs +++ b/src/Propellor/Property/Sbuild.hs @@ -94,7 +94,12 @@ stdMirror (System (Buntish r) _) = "TODO" -- | Update a schroot's installed packages and apt indexes. updated :: System -> Property DebianLike -updated = undefined +updated system@(System distro arch) = go `requires` installed + where + go :: Property DebianLike + go = tightenTargets $ cmdProperty + "sbuild-update" ["-udr", suite ++ "-" ++ "arch"] + suite = fromJust $ extractSuite system -- TODO autoclean/clean only if shareAptCache property not present -- | Bind-mount @/var/cache/apt/archives@ in all sbuild chroots so that the host -- cgit v1.2.3