From 3bedb492cfca587f9abca6a2b4d63d74f6330302 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 5 Apr 2016 13:48:42 -0400 Subject: add comments --- src/Propellor/Property/Apt.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Propellor/Property/Apt.hs') 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\";" -- cgit v1.2.3