diff options
| author | Joey Hess <joeyh@joeyh.name> | 2017-09-25 14:37:47 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2017-09-25 14:37:47 -0400 |
| commit | 0732930a105a29809affd42900b69025a892f003 (patch) | |
| tree | b528da1e04470a2a9f3cccecfe3aa6ad35708cf6 /src/Propellor/Property/Apt.hs | |
| parent | 49f477bc84842e9f70d6acea98953d4f1db6cad7 (diff) | |
| parent | fd4dd67f54f93a79bc9ec5977408f7821e1b0b56 (diff) | |
Merge branch 'joeyconfig'
Diffstat (limited to 'src/Propellor/Property/Apt.hs')
| -rw-r--r-- | src/Propellor/Property/Apt.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Propellor/Property/Apt.hs b/src/Propellor/Property/Apt.hs index 5630d83a..68ebe89e 100644 --- a/src/Propellor/Property/Apt.hs +++ b/src/Propellor/Property/Apt.hs @@ -331,7 +331,9 @@ isInstalled :: Package -> IO Bool isInstalled p = isInstalled' [p] isInstalled' :: [Package] -> IO Bool -isInstalled' ps = all (== IsInstalled) <$> getInstallStatus ps +isInstalled' ps = do + is <- getInstallStatus ps + return $ all (== IsInstalled) is && length is == length ps data InstallStatus = IsInstalled | NotInstalled deriving (Show, Eq) |
