From ccbe9f399a5c9f6b853c6a3bb0b004b2d73ac5af Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Fri, 11 Mar 2011 21:23:29 +1100 Subject: Fixed #6681 - Remove --force-yes option from aptitude is used --- lib/puppet/provider/package/aptitude.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/puppet/provider/package/aptitude.rb b/lib/puppet/provider/package/aptitude.rb index 8bdf984e6..2eafd3ef8 100755 --- a/lib/puppet/provider/package/aptitude.rb +++ b/lib/puppet/provider/package/aptitude.rb @@ -12,6 +12,7 @@ Puppet::Type.type(:package).provide :aptitude, :parent => :apt, :source => :dpkg args.flatten! # Apparently aptitude hasn't always supported a -q flag. args.delete("-q") if args.include?("-q") + args.delete("--force-yes") if args.include?("--force-yes") output = aptitude(*args) # Yay, stupid aptitude doesn't throw an error when the package is missing. -- cgit From 7f658e6a19e43856ebc6aafe4f3a6e94cb765e73 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Wed, 19 Aug 2009 23:44:44 -0400 Subject: vim: Initial ftplugin and indent support Vim's indent support makes it easier to automatically indent puppet manifests. --- ext/vim/README | 3 +- ext/vim/ftplugin/puppet.vim | 94 +++++++++++++++++++++++++++++++++++++++++++++ ext/vim/indent/puppet.vim | 76 ++++++++++++++++++++++++++++++++++++ 3 files changed, 172 insertions(+), 1 deletion(-) create mode 100644 ext/vim/ftplugin/puppet.vim create mode 100644 ext/vim/indent/puppet.vim diff --git a/ext/vim/README b/ext/vim/README index 776bb1eb2..7fd2934fb 100644 --- a/ext/vim/README +++ b/ext/vim/README @@ -1,2 +1,3 @@ To install these files, copy them into ~/.vim, or the relevant -system-wide location. +system-wide location. To use the ftplugin and indenting, you may need +to enable them with "filetype plugin indent on" in your vimrc. diff --git a/ext/vim/ftplugin/puppet.vim b/ext/vim/ftplugin/puppet.vim new file mode 100644 index 000000000..b6491554b --- /dev/null +++ b/ext/vim/ftplugin/puppet.vim @@ -0,0 +1,94 @@ +" Vim filetype plugin +" Language: Puppet +" Maintainer: Todd Zullinger +" Last Change: 2009 Aug 19 +" vim: set sw=4 sts=4: + +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +if !exists("no_plugin_maps") && !exists("no_puppet_maps") + if !hasmapto("AlignRange") + map = AlignRange + endif +endif + +noremap