summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Apt.hs
AgeCommit message (Collapse)Author
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
2015-12-06Apt.cacheCleaned was trivial, force NoChangeJoey Hess
2015-12-05remove trivialJoey Hess
2015-12-05UncheckedProperty for cmdProperty et alJoey Hess
* Properties that run an arbitrary command, such as cmdProperty and scriptProperty are converted to use UncheckedProperty, since they cannot tell on their own if the command truely made a change or not. (API Change) Transition guide: - When GHC complains about an UncheckedProperty, add: `assume` MadeChange - Since these properties used to always return MadeChange, that change is always safe to make. - Or, if you know that the command should modifiy a file, use: `changesFile` filename * A few properties have had their Result improved, for example Apt.buldDep and Apt.autoRemove now check if a change was made or not.
2015-12-05Added UncheckedProperty type, along with unchecked to indicate a Property ↵Joey Hess
needs its result checked, and checkResult and changesFile to check for changes.
2015-10-27Explicit Info/NoInfo for RevertableProperty (API change)Joey Hess
RevertableProperty used to be assumed to contain info, but this is now made explicit, with RevertableProperty HasInfo or RevertableProperty NoInfo. Transition guide: - If you define a RevertableProperty, expect some type check failures like: "Expecting one more argument to ‘RevertableProperty’". - Change it to "RevertableProperty NoInfo" - The compiler will then tell you if it needs "HasInfo" instead. - If you have code that uses the RevertableProperty constructor that fails to type check, use the more powerful <!> operator
2015-10-10propellor spinJoey Hess
2015-10-08Add Apt.hasForeignArch.Per Olofsson
Signed-off-by: Per Olofsson <pelle@dsv.su.se>
2015-09-13avoid running debconf-set-selections on [] and add some types for documentationJoey Hess
2015-09-13Follow some hlint suggestions.Mario Lang
2015-05-07cmdProperty' renamed to cmdPropertyEnv to make way for a new, more generic ↵Joey Hess
cmdProperty' (API change)
2015-04-19debCdn changed to new httpredir.debian.org official replacement for ↵Joey Hess
http.debian.net.
2015-01-25remove toSimplePropJoey Hess
It didn't do what I thought it did with a RevertableProperty; it always returned Nothing because even if the input properties to <!> are NoInfo, it casts them to HasInfo. Even if it had worked, it lost type safety. Better to export the Property NoInfo that is used in a RevertableProperty, so it can be used directly.
2015-01-24GADT properties seem to work (untested)Joey Hess
* Property has been converted to a GADT, and will be Property NoInfo or Property HasInfo. This was done to make sure that ensureProperty is only used on properties that do not have Info. Transition guide: - Change all "Property" to "Property NoInfo" or "Property WithInfo" (The compiler can tell you if you got it wrong!) - To construct a RevertableProperty, it is useful to use the new (<!>) operator - Constructing a list of properties can be problimatic, since Property NoInto and Property WithInfo are different types and cannot appear in the same list. To deal with this, "props" has been added, and can built up a list of properties of different types, using the same (&) and (!) operators that are used to build up a host's properties.
2014-12-09improve haddock formating of filenamesJoey Hess
2014-12-01Run apt-cache policy with LANG=C.Joey Hess
2014-11-11Apt: stable-updates suiteFélix Sipma
Signed-off-by: Félix Sipma <felix.sipma@no-log.org>
2014-10-10debCdn switched from cdn.debian.net to http.debian.net, which seems to be ↵Joey Hess
better managed now. Conflicts: debian/changelog
2014-10-10stable suite changesJoey Hess
* Avoid encoding the current stable suite in propellor's code, since that poses a difficult transition around the release, and can easily be wrong if an older version of propellor is used. Instead, the os property for a stable system includes the suite name to use, eg Stable "wheezy". * stdSourcesList uses the stable suite name, to avoid unwanted immediate upgrades to the next stable release.
2014-06-10cacheCleaned is trivialJoey Hess
2014-06-05Apt.stdSourcesList no longer needs a suite to be specified.Joey Hess
2014-06-05fix os attributeJoey Hess
2014-06-05propellor spinJoey Hess
2014-06-01propellor spinJoey Hess
2014-05-18really fix use of suiteJoey Hess
2014-05-18fix use of suiteJoey Hess
2014-05-18Fix unattended-upgrades config for !stable.Joey Hess
2014-05-14moved source code to srcJoey Hess
This is to work around OSX's brain-damange regarding filename case insensitivity. Avoided moving config.hs, because it's a config file. Put in a symlink to make build work.