Since the command is sudo, don't run with sudo.
Changing to sudo(command, user='postgres') does not work as the directory change is run in the sudo which fails.
run('sudo -u postgres %s' % command) results in cd /var/lib/postgresql && sudo -u postgres COMMAND
sudo(command, user='postgres') results in sudo -u postgres cd /var/lib/postgresql && COMMAND
The use case is a sudoer given NOPASSWD for postgres running psql.
FIX: rpm.install doesn't work due to not using pty
added version param to deb.install to pass to apt-get
Add missing import
Merge pull request #122 from sebastibe/missing-import-local

Add missing import
Fix the two space characters on the end of each lines on the /etc/locale.gen file in Archlinux
Merge pull request #126 from badele/locale

Strip whitespace when parsing locales
Fix redis run folder issue

The /var/run/redis folder created to store the supervisord's PID
is deleted by some OS (Debian-based) on startup.
The supervisor-launched instance of redis always fails after reboot
because of that.
Merge pull request #128 from vperron/master

Fix redis startup after reboot
Can permit choose python version
Add the --force option to git pull and checkout
Fix error var use_use_python to use_python
Merge pull request #130 from sebastibe/git-force-option

Add the --force option to git pull and checkout
Merge pull request #129 from badele/python

Allow to choose a specific python binary for python-related operations
PyPI is now behind a CDN, pip --use-mirrors should default to False

PyPI is now behind a CDN and should get a lot faster then using mirrors: http://mail.python.org/pipermail/distutils-sig/2013-May/020848.html
Merge pull request #118 from AudaxHealthInc/deb_version

Allow specific version of Debian package
Add examples showing installation of specific deb package versions [#118]
Add support yaourt package manager fro Archlinux
Merge pull request #131 from badele/yaourt

Add support for yaourt package manager for Archlinux
Minor change, replace output.return_code == 0 by output.succeeded