diff options
| author | Sean Whitton <spwhitton@spwhitton.name> | 2016-05-16 15:03:37 -0700 |
|---|---|---|
| committer | Sean Whitton <spwhitton@spwhitton.name> | 2016-05-16 15:03:37 -0700 |
| commit | 3f2854885a1f7618b6e697fa461d9e31eec1697f (patch) | |
| tree | bd61b98b7f739b894be283a307e8b3f7b2f6b49b /src/Propellor | |
| parent | f3379036df361e01b8aea50f26a628b921593d91 (diff) | |
Sbuild.updated
Diffstat (limited to 'src/Propellor')
| -rw-r--r-- | src/Propellor/Property/Sbuild.hs | 7 |
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 |
