summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Apt.hs
AgeCommit message (Collapse)Author
2017-03-15Added Monoid instances for Property and RevertableProperty.Joey Hess
* Added Monoid instances for Property and RevertableProperty. * Removed applyToList. Instead, use mconcat. (API change) Eg, if you had: applyToList accountFor [User "joey", User "root"] use instead: mconcat (map accountFor [User "joey", User "root"]) mappend x y is basically the same as x `before` y. In particular, if x fails to be ensured, it won't ensure y. This seems to make sense, since applyToList had that behavior, and so does the Monoid for Propellor Result. The alternative would be to try to ensure both and combine the results. However, I don't see any reason to do it that way. It would be nice if the description of both properties were displayed when ensuring the combination. But then, it would need to display eg: ensuring x..ok ensuring y..failed ensuring x and ensuring y..failed Without a way to get rid of that redundant last line, I don't want to do that. Note that the haddocks for the Monoid instances need a really wide screen to display! This is IMHO an infelicity in haddock, and I can't do anything about it really. This commit was sponsored by Fernando Jimenez on Patreon.
2017-02-26use val instead of showJoey Hess
2017-02-13deb.debian.orgJoey Hess
* Apt: Removed the mirrors.kernel.org line from stdSourcesList etc. The mirror CDN has a new implementation that should avoid the problems with httpredir that made an extra mirror sometimes be needed. * Switch Debian CDN address to deb.debian.org. httpredir.debian.org points to the same IPs as deb.debian.org now, so this shouldn't change anything except to use the now preferred name.
2017-02-04AptPrefPackage -> AptPackagePrefSean Whitton
This reads much better: it's an "apt package preference".
2017-02-04Apt.pinnedTo takes a list of suites and pin prioritiesSean Whitton
2017-02-04factor out suitePinBlockSean Whitton
2017-02-04rm superfluous TODOSean Whitton
2017-02-02add Explanation: lines to pref filesSean Whitton
2017-02-02drop a superfluous blank line in pref fileSean Whitton
2017-02-02fix type of Apt.pinnedToSean Whitton
2017-02-02AptPrefPackage typeSean Whitton
2017-02-02Apt.pinnedTo uses File.configFileNameSean Whitton
2017-01-31more spacingSean Whitton
2017-01-31neaten the prefs file Apt.pinnedTo generatesSean Whitton
2017-01-31spacingSean Whitton
2017-01-31describe Apt.pinnedToSean Whitton
2017-01-31pass a tuple to Apt.pinnedToSean Whitton
This permits calling Apt.pinnedTo infix
2017-01-31suiteAvailablePinned avoids pinning backportsSean Whitton
2017-01-31implement Apt.pinnedToSean Whitton
2017-01-30commented hackingSean Whitton
2017-01-30TODOSean Whitton
2017-01-30fix swapped sourceFile & prefFileSean Whitton
2017-01-30refactor to fix type errorsSean Whitton
2017-01-30pin even if hostSuite == suiteSean Whitton
2017-01-30tweak stubSean Whitton
2017-01-30implement suiteAvailablePinnedSean Whitton
2017-01-30pin property prototypesSean Whitton
2017-01-19add Apt.noPDiffsSean Whitton
2016-06-18Really make Apt.install fail when asked to install a package that apt does ↵Joey Hess
not know about
2016-06-17Apt.install: When asked to install a package that apt does not know about, ↵Joey Hess
it used to incorrectly succeed. Now it will fail.
2016-06-13add DebianKernel datatypeFélix Sipma
(cherry picked from commit 3590a1241580ddcdd153e2619a3c02ce18a8db8c but without the changes to src/Propellor/Precompiled.hs)
2016-04-05Apt.unattendedUpgrades: mail rootFélix Sipma
2016-04-05add commentsJoey Hess
2016-04-05Apt: add periodicUpdatesFélix Sipma
2016-03-30Merge branch 'master' into typed-os-requirementsJoey Hess
2016-03-30Apt.update: Also run dpkg --configure -a here as apt for some reason won't ↵Joey Hess
even update if dpkg was interrupted.
2016-03-28propellor spinJoey Hess
2016-03-28backports are debian onlyJoey Hess
2016-03-25cleanup warningsJoey Hess
2016-03-25much simpler and more type safe implementation of Apt.robustly, using fallback!Joey Hess
2016-03-25ported Property.AptJoey Hess
2016-03-07add unsupportedOSJoey Hess
2016-03-01Apt: hlint fixesFélix Sipma
(cherry picked from commit 3682285c696ff24169f2bdaad6fbbea6a561b560)
2016-03-01Apt: fix typoFélix Sipma
(cherry picked from commit 0e076fbfaa4d57f8d665436243d20bb9e28cbebc)
2016-02-29run dpkg --configure with non-interactive envJoey Hess
2016-02-29forgot to build; fixJoey Hess
2016-02-29apt upgrade improvementsJoey Hess
* Apt.upgrade: Run dpkg --configure -a first, to recover from interrupted upgrades. * Apt: Add safeupgrade.
2016-02-07Delete /etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist when ↵Joey Hess
unattended-upgrades is installed, to work around #812380 which results in many warnings from apt, including in cron mails.
2015-12-19Clean build with ghc 7.10.Joey Hess
Import Prelude after modules that cause warnings due to AMP change
2015-12-06allow using `check` on a UncheckedProperty, which yields a PropertyJoey Hess