Commit Graph

9 Commits (6afa1da9103a4cfe70dc9c2ede87a2961b22b61b)

Author SHA1 Message Date
Abhijit Menon-Sen 6afa1da910 Clarify HAVE_PYTHON_APT/install_python_apt handling in apt_repository
1. Don't test check_mode in both the caller and in the callee.
2. Don't test HAVE_PYTHON_APT inside an if that tests HAVE_PYTHON_APT
3. Don't be irritatingly vague about why the module fails ("You may be
   seeing this because…").

Note that if «apt-get -y install python-apt» succeeds with rc==0, but
for some reason python_apt is not usable afterwards, this will break
because the imports in install_python_apt aren't wrapped inside a
try/except.

In other words, we assume that install_python_apt either succeeds or
fails with a traceback. This commit doesn't affect that behaviour.
9 years ago
Abhijit Menon-Sen 653fd34ed7 Fix call to _expand_ppa 9 years ago
verm666 d435d5ce0a This change is in response to issue #133.
The original problem is: apt_repository.py connect to launchpad on
every playbook run. In this patch apt_repository.py checks if required
repository already exists or not. If no - paa will be added, if yes -
just skip actions.
10 years ago
Toshio Kuratomi 50912c9092 Fix apt_repository so that it does not modify the mode of existing repositories 10 years ago
Toshio Kuratomi 720632f568 Merge pull request #338 from pilou-/apt_repository_filemode
apt_repository: fix file mode
10 years ago
Greg DeKoenigsberg 2a5f0bde87 Proper author info for all remaining modules 10 years ago
Matt Martz 7ca732830f Python2.4 fixes
* Ignore accelerate.py
* Don't use a lambda or a ternary
10 years ago
Pierre-Louis Bonicoli 9ca27eedcc apt_repository: fix file mode
'set_mode_if_different' method should be called on dest filename and after
'atomic_move' method
10 years ago
Michael DeHaan 3ed1378067 Some more module categorization. 10 years ago