summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton2016-05-16 15:03:37 -0700
committerSean Whitton2016-05-16 15:03:37 -0700
commit3f2854885a1f7618b6e697fa461d9e31eec1697f (patch)
treebd61b98b7f739b894be283a307e8b3f7b2f6b49b
parentf3379036df361e01b8aea50f26a628b921593d91 (diff)
Sbuild.updated
-rw-r--r--src/Propellor/Property/Sbuild.hs7
1 files changed, 6 insertions, 1 deletions
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