summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2015-12-19Clean build with ghc 7.10.Joey Hess
Import Prelude after modules that cause warnings due to AMP change
2015-12-17minor tweakJoey Hess
2015-12-17Gpg: fix gpg parameters in hasPrivKey and hasPubKeyFélix Sipma
(cherry picked from commit 04464ae17a7396d0cafffefc2880e68f40fc42ad)
2015-12-17hlintFélix Sipma
(cherry picked from commit e2d86f812bd37de9cda7d4ecc0e5b84821f359c1)
2015-12-17Gpg: use processTranscript in hasPrivKey and hasPubKeyFélix Sipma
(cherry picked from commit 21ffe59d0368f5cfe45316b31d661077e372d512)
2015-12-16Gpg: parse GpgKeyType in keyImportedFélix Sipma
(cherry picked from commit cdd1e093118b5eeab7743be7e2ec959980716145)
2015-12-16Gpg.keyImported: check if a pubKey is imported instead of using a flagfileFélix Sipma
(cherry picked from commit 9712d125a2c3e3c609b68d9958207c251ba005ac)
2015-12-16Gpg: use isJustFélix Sipma
(cherry picked from commit 1bb2377598e447e81e20a0e1de1a5d466851d655)
2015-12-16Gpg: add hasPrivKey and hasPubKeyFélix Sipma
(cherry picked from commit 7196b884e35ba907891c00d6e2840a36dce2214c)
2015-12-15Merged Utility changes from git-annex.Joey Hess
2015-12-15merge from git-annexJoey Hess
withTmpDir security fix in git-annex merged Fix potential denial of service attack when creating temp dirs. withTmpDir now makes directory mode 700. AFAICS, propellor didn't leak any info with the old permissions, and no uses of withTmpDir in propellor are broken by the new permissions.
2015-12-14User: systemAccountFor and systemAccountFor'Félix Sipma
(cherry picked from commit f56f9696a998d32d6d5c4eca29b28ee60def2db0)
2015-12-14User: add systemAccountFor and simpleSystemAccount propertiesFélix Sipma
(cherry picked from commit 4075a38db0fad4ef6e0c99e13c40ad9e0d54ec8b)
2015-12-08avoid crash when stdout is not open in call to hIsTerminalDeviceJoey Hess
Saw this happen in http://propellor.branchable.com/forum/Fail_to_push_changes_when_merging/ although I don't entirely understand the circumstances.
2015-12-08tweak wrong spin branch error messageSean Whitton
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name> (cherry picked from commit 9d44dcd39bb88408ed4cfc94a7b4dfa34a1b5591)
2015-12-08implement two pre-spin safety checksSean Whitton
- check that we're on the branch specified in git config value propellor.spin-branch - check that there are no uncommitted changes if git config value propellor.forbid-dirty-spin is true Signed-off-by: Sean Whitton <spwhitton@spwhitton.name> (cherry picked from commit 8f374d73ae5b2bb53f82835c6d6b5c0194590006)
2015-12-08rewrite getRepoUrl with getGitConfigValueSean Whitton
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name> (cherry picked from commit 3d4c34dece4d295a349ac5b24ec1fbbd3e90f668)
2015-12-08implement getGitConfigValue & getGitConfigBoolSean Whitton
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name> (cherry picked from commit 1828c6d987f9d499b95610311379dcbdeaa21e33)
2015-12-06allow using `check` on a UncheckedProperty, which yields a PropertyJoey Hess
2015-12-06add isNewerThan and use it to avoid unnecessary running of newaliasesJoey Hess
2015-12-06improve docsJoey Hess
2015-12-06avoid running update-grub except for just after installing the grub packageJoey Hess
2015-12-06only write /etc/hosts once, avoiding always returning MadeChangeJoey Hess
2015-12-06avoid removing line we wanted to add, only to add it back laterJoey Hess
2015-12-06improve error displayJoey Hess
2015-12-06setting the same sasl password updates the mtime of the file, but the ↵Joey Hess
contents remain the same Don't much like using Data.Hash.MD5, but it's available in dependencies and pulling in a real hash library would be overkill. And md5 is a perfectly ok hash to use here.
2015-12-06check for changes to sasldb2Joey Hess
2015-12-06Apt.cacheCleaned was trivial, force NoChangeJoey Hess
2015-12-05refactorJoey Hess
2015-12-05make Locale.selectedFor check contents of file to decide if it needs to make ↵Joey Hess
a change
2015-12-05typoJoey 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-11-26Added Propellor.Property.Fail2Ban.Joey Hess
2015-11-26Added changesFile property combinator.Joey Hess
2015-11-26shorten reference to locale manpageSean Whitton
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name> (cherry picked from commit ad7c9338306094f2d8187107417dd9331cb8f8a0)
2015-11-26improve Haddock for Locale.selectedForSean Whitton
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name> (cherry picked from commit ca016d391e2419856e1efc40cc977af6a99af7d6)
2015-11-26locale props use descriptive types & revertableSean Whitton
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name> (cherry picked from commit 6d10045ba74c1dc45e6aab4bae8b4757751c1920)
2015-11-26properties to select and generate localesSean Whitton
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name> (cherry picked from commit ee14ef80cf9ab761b07fbc40f549ad5c7c72f6cb)
2015-11-25make trivial since it updates the password each timeJoey Hess
2015-11-25set privdatadirJoey Hess
2015-11-25Added Postfix.saslPasswdSet.Joey Hess
2015-11-25unused importJoey Hess
2015-11-24User.hasDesktopGroups changed to avoid trying to add the user to groups that ↵Joey Hess
don't exist. This is the same method user-setup uses.
2015-11-24haddock improvementsJoey Hess
2015-11-24Added User.hasDesktopGroups property.Joey Hess
Based on a property in spwhitton's config, but rewritten.
2015-11-24fixesJoey Hess
2015-11-24merge fix from gix-annexJoey Hess
2015-11-24found this handy conversion of my blog post to propellor property in ↵Joey Hess
spwhitton's repo