Commit Graph

127 Commits (6d69956f83172f5e6b15103e7203ea0d0cce87b4)

Author SHA1 Message Date
saez0pub 029b608e1e Prevent reinstallation in case of group package 2016-12-08 11:33:56 -05:00
Will Keeling 876fe06290 Better handling of package groups in pacman module 2016-12-08 11:33:53 -05:00
Toshio Kuratomi c602d49d42 Fail due to no dnf module installed earlier as we use a dnf utility function to determine if we have permission to install packages. 2016-12-08 11:33:53 -05:00
Jiri Tyr bb194b03bc Removing parameter from yum_repository module 2016-12-08 11:33:53 -05:00
Jiri Tyr 709ae10207 Adding more options to the yum_repository module 2016-12-08 11:33:53 -05:00
Konstantin Shalygin 3956549e6c Fix recurse delete. Add force update_cache feature. 2016-12-08 11:33:52 -05:00
Rene Moser e9667eb542 doc: replace yumrepo with yum_repository 2016-12-08 11:33:51 -05:00
Rene Moser 84259eb2d6 rename yumrepo to yum_repository 2016-12-08 11:33:51 -05:00
Jan Chaloupka 6e201948bc dnf module: package not installed with state=latest
dnf: name=PACKAGE state=latest is reponsible for two use cases:
- to install a package if not already installed.
- to update the package to the latest if already installed.

The latter use cases is not handled properly as base.upgrade does not
throw dnf.exceptions.MarkingError if a package is not installed.

Setting base.conf.best = True ensures a package is installed or
updated to the latest when calling base.install.

Sign-off: jsilhan@redhat.com
Sign-off: jchaloup@redhat.com
2016-12-08 11:33:49 -05:00
Jiri Tyr 014d78e78d Adding params option into the yumrepo module 2016-12-08 11:33:48 -05:00
Toshio Kuratomi 96f1bd82c0 Allow dnf to remove dependent packages of a package that is being removed
Fixes #1517
2016-12-08 11:33:48 -05:00
Daniel Jakots ffc291bc9a fix the spelling of vim's flavor in the example 2016-12-08 11:33:46 -05:00
Toshio Kuratomi 255c4b01a8 Remove duplicate documentation fields 2016-12-08 11:33:46 -05:00
Scott Bonds 7f1ccad39b add python 2.5 requirement and ansible 2.1 version_added 2016-12-08 11:33:45 -05:00
Scott Bonds 056a532d75 add ports support in openbsd_pkg 2016-12-08 11:33:45 -05:00
Toshio Kuratomi ad0d2c1747 Update for modules which import json.
Some do not use the json module directly so don't need import json.
Some needed to fallback to simplejson with no traceback if neither was installed

Fixes #1298
2016-12-08 11:33:44 -05:00
Alexander Winkler dca9d618f0 fixed inline for more compatibility 2016-12-08 11:33:43 -05:00
Alexander Winkler c730bd6f1c Added update_catalog and some error handling 2016-12-08 11:33:43 -05:00
Michael Scherer d504253257 Simplify the code and remove use_unsafe_shell=True
While there is no security issue with this shell snippet, it
is better to not rely on shell and avoid use_unsafe_shell.
2016-12-08 11:33:41 -05:00
Matt Martz 22733a7574 Fix tabbed indentation in packaging/os/pkgutil.py 2016-12-08 11:33:40 -05:00
Michael Scherer df195b3076 Replace choices=BOOLEANS by type='bool', fix #1326 2016-12-08 11:33:40 -05:00
Marc Mettke 43d2e3ad68 Pacman Module Fixes
Update: query_package documentation
Fix: Number of Packages to Updated was one to high,
     'cause of counting the '\n'
Fix: Pacman was reinstalling state=latest packages,
     even when it was unable to load the remote version
2016-12-08 11:33:40 -05:00
Guido Günther 13deae9b8f zypper: Add returncode to result
This will be used in integration tssts and makes the whole thing
more similar to the yum module.
2016-12-08 11:33:37 -05:00
Jiri tyr d4d24bac60 Adding yumrepo module
This patch is adding a new module which allows to add and remove YUM
repository definitions. The module implements all repository options
as described in the `yum.conf` manual page.
2016-12-08 11:33:36 -05:00
Indrajit Raychaudhuri 92efb6eb51 homebrew: Aditional examples for documentation 2016-12-08 11:33:34 -05:00
Indrajit Raychaudhuri 273d1c51e6 homebrew: Add explicit documentation for 'path' argument (with expected default)
In Homebew, a formula is installed in a location relative to the actual
`brew` command. The documentation clarifies that.

Additionally, removed redundant 'path' reconstruction in multiple places.
2016-12-08 11:33:34 -05:00
Robin Roth 85f2165273 better cope with rpm not returning package name
if the rpm query is missing a package name (or giving some error): fail soft

before the patch: the module fails because the installed_state dict is missing the package name

after the patch: the missing package is assumed to not be in the correct state and is installed/removed with zypper
2016-12-08 11:33:33 -05:00
pmakowski 9ab42a98ca no-suggests is obsolete, switch to no-recommends 2016-12-08 11:33:33 -05:00
Toshio Kuratomi 8c8c63110e Move existing check for root before we make expensive network calls 2016-12-08 11:33:31 -05:00
Toshio Kuratomi 9c75b5eac3 Make the pkg/name param into a list so that changes to make changes to _squash_items easier 2016-12-08 11:33:31 -05:00
james c2a4e230aa More consistent use of run_command() wrapper function, which now adds the default binary location to the search path 2016-12-08 11:33:30 -05:00
M0ses a1dbb83075 fix errorhandling in zypper.py module
package_latest was calling package_present but did not care
about the return code so errors in package_present were hidden
and everthing look ok on the console when zypper update did not fail,
but no packages where installed.
2016-12-08 11:33:29 -05:00
Christopher M. Fuhrman 5574516934 pkgin: Support multiple matching packages
pkgin searches for packages such as 'emacs' can return multiple matches,
the first of which is not guaranteed to match.  So, iterate through
found packages until we have an appropriate match.  Should we *not* find
a match, then return False indicating match failure.
2016-12-08 11:33:29 -05:00
Kevin b43329b6a0 Remove `homebrew-` prefix when checking if repo has already been tapped
See: https://github.com/Homebrew/homebrew/blob/master/Library/Homebrew/cmd/tap.rb

Example:

```
$ brew tap neovim/homebrew-neovim
$ brew tap
neovim/neovim
...
```
2016-12-08 11:33:26 -05:00
Toby Fleming 3293fe7231 Homebrew: Allow colons, direct check for outdated formula 2016-12-08 11:33:26 -05:00
Indrajit Raychaudhuri e115f62a2d homebrew: Also add 'formula' as alias for 'name' and reformat 2016-12-08 11:33:25 -05:00
Indrajit Raychaudhuri c397dfe9ed homebrew: Improve 'argument_spec' handling
- Remove choice list for boolean values in argument_spec and make it
  more consistent with core modules
- Add 'package' alias and support for list type for 'name' parameter
- Added self as maintainer
2016-12-08 11:33:25 -05:00
Toshio Kuratomi 7ccd6a4de0 Change documented requirement from dnf to python-dnf as dnf could be taken to mean the command line tool.
Fixes #1032
2016-12-08 11:33:25 -05:00
Brian Coca ae84177514 switched to use module loggigng 2016-12-08 11:33:24 -05:00
ToBeReplaced faee617b21 Fix fail_json call in _mark_package_install 2016-12-08 11:33:23 -05:00
Indrajit Raychaudhuri 42a28d92e2 Additional upgrade mode fixes for pacman module with check_mode safety - ensure upgrade option honors and actually supports `check_mode` - enabling just `upgrade` and `update_cache` should perform upgrade - example added for the equivalent for `pacman -Syu` 2016-12-08 11:33:22 -05:00
Indrajit Raychaudhuri f10de6e47b Add 'package' alias and support for list type for pacman 'name' parameter 2016-12-08 11:33:21 -05:00
Vlad Glagolev fa56777341 fixed a typo in swdepot module 2016-12-08 11:33:20 -05:00
timeraider4u a7e088c683 added check_mode support
added support for the --check option during execution of the playbooks
2016-12-08 11:33:19 -05:00
Vlad Glagolev c3d49d7db0 fixed a typo in pacman module 2016-12-08 11:33:19 -05:00
ToBeReplaced ad54ce6125 Rewrite dnf module.
This fully implements all expected functionality of the dnf module.

Group removal may behave oddly due to hiccups in tagging groups as being
installed.

A pkg_types option could be added to specify the group package types.
2016-12-08 11:33:19 -05:00
ToBeReplaced cdf603448a Add support for state=latest and * 2016-12-08 11:33:19 -05:00
ToBeReplaced 337a1db62e Add change reporting, enablerepo support, and gpgcheck.
disable_gpg_check was configured backwards, so it was toggled. Typos in
enablerepo/disablerepo are removed. fill_sack() calls are relocated to
occur after repo decisions. The "changed" key is now set for new
installations.
2016-12-08 11:33:19 -05:00
Igor Gnatenko e178abb501 typo fix in oneliners
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-08 11:33:19 -05:00
Toshio Kuratomi a1235d91a2 Fix nevra, fixes to docs and copyright info 2016-12-08 11:33:19 -05:00