summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Apt.hs
diff options
context:
space:
mode:
authorJoey Hess2016-04-05 13:48:42 -0400
committerJoey Hess2016-04-05 13:48:42 -0400
commit3bedb492cfca587f9abca6a2b4d63d74f6330302 (patch)
treebbba1f4fc5751f0220348ad028d0e48597446eaf /src/Propellor/Property/Apt.hs
parent74f8e2ad26c5c069fdafdc5e3ed32ec0a57b57ba (diff)
add comments
Diffstat (limited to 'src/Propellor/Property/Apt.hs')
-rw-r--r--src/Propellor/Property/Apt.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Propellor/Property/Apt.hs b/src/Propellor/Property/Apt.hs
index fd70e37d..58a83c43 100644
--- a/src/Propellor/Property/Apt.hs
+++ b/src/Propellor/Property/Apt.hs
@@ -117,6 +117,7 @@ noninteractiveEnv =
, ("APT_LISTCHANGES_FRONTEND", "none")
]
+-- | Have apt update its lists of packages, but without upgrading anything.
update :: Property DebianLike
update = combineProperties ("apt update") $ props
& pendingConfigured
@@ -124,7 +125,7 @@ update = combineProperties ("apt update") $ props
`assume` MadeChange
-- | Have apt upgrade packages, adding new packages and removing old as
--- necessary.
+-- necessary. Often used in combination with the `update` property.
upgrade :: Property DebianLike
upgrade = upgrade' "dist-upgrade"
@@ -258,7 +259,8 @@ unattendedUpgrades = enable <!> disable
("Unattended-Upgrade::Origins-Pattern { \"o=Debian,a="++showSuite suite++"\"; };")
_ -> noChange
--- | Enable periodic updates.
+-- | Enable periodic updates (but not upgrades), including download
+-- of packages.
periodicUpdates :: Property DebianLike
periodicUpdates = tightenTargets $ "/etc/apt/apt.conf.d/02periodic" `File.hasContent`
[ "APT::Periodic::Enable \"1\";"