From 5cfb20668421acb3c0de133afe973fc693b8b320 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 5 Dec 2015 18:03:02 -0400 Subject: remove trivial --- src/Propellor/Property/Apt.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Propellor/Property/Apt.hs') diff --git a/src/Propellor/Property/Apt.hs b/src/Propellor/Property/Apt.hs index cf81c9be..26c151d9 100644 --- a/src/Propellor/Property/Apt.hs +++ b/src/Propellor/Property/Apt.hs @@ -140,13 +140,13 @@ installed' params ps = robustly $ check (isInstallable ps) go `assume` MadeChange installedBackport :: [Package] -> Property NoInfo -installedBackport ps = trivial $ withOS desc $ \o -> case o of +installedBackport ps = withOS desc $ \o -> case o of Nothing -> error "cannot install backports; os not declared" (Just (System (Debian suite) _)) -> case backportSuite suite of Nothing -> notsupported o - Just bs -> ensureProperty $ runApt - (["install", "-t", bs, "-y"] ++ ps) - `assume` MadeChange + Just bs -> ensureProperty $ + runApt (["install", "-t", bs, "-y"] ++ ps) + `changesFile` dpkgStatus _ -> notsupported o where desc = (unwords $ "apt installed backport":ps) -- cgit v1.2.3