diff options
| author | Joey Hess <joeyh@joeyh.name> | 2015-12-05 15:48:03 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-12-05 15:48:03 -0400 |
| commit | b816e40e2618a8932144bceb7c7039adc5c44c11 (patch) | |
| tree | d128d9578764bc9b87d728370ffd4bc811e3b4d2 /src/Propellor/Property | |
| parent | b15dd3010190700bc61a06b1a1d017b0500be28a (diff) | |
Added UncheckedProperty type, along with unchecked to indicate a Property needs its result checked, and checkResult and changesFile to check for changes.
Diffstat (limited to 'src/Propellor/Property')
| -rw-r--r-- | src/Propellor/Property/Apt.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Propellor/Property/Apt.hs b/src/Propellor/Property/Apt.hs index fd6230e8..83ad2cda 100644 --- a/src/Propellor/Property/Apt.hs +++ b/src/Propellor/Property/Apt.hs @@ -159,7 +159,8 @@ removed ps = check (or <$> isInstalled' ps) go go = runApt $ ["-y", "remove"] ++ ps buildDep :: [Package] -> Property NoInfo -buildDep ps = robustly go +buildDep ps = trivial (robustly go) + `changesFile` "/var/lib/dpkg/status" `describe` (unwords $ "apt build-dep":ps) where go = runApt $ ["-y", "build-dep"] ++ ps |
