summaryrefslogtreecommitdiff
path: root/packaging/os/zypper.py
Commit message (Collapse)AuthorAgeFilesLines
* Refreshed metadata for extras modulesToshio Kuratomi2016-12-061-0/+4
|
* Use native YAML - Packaging (#3588)Fabio Alessandro Locati2016-12-011-10/+34
| | | | | | | | | | | | | | | | | | * Fix kibana * More native YAML * More native YAML * More native YAML * More native YAML. Now only languages/ is missing * Use native yaml sintax for packaging/languages as well * Some more and quote fixes * Fix wrong grouping
* zypper: fix for checking result is None (#3143)Alex2016-10-171-9/+10
|
* List python-xml in requirements for zypper* (#2937)Robin Roth2016-09-211-0/+1
|
* Ensure the return value for changed is bool (#2830)Robin Roth2016-09-021-1/+1
| | | fixes #2827
* allow to specify versions with zypper (#2328)Robin Roth2016-08-101-16/+81
| | | | | | | | | * fixes #2158 * handles version-specifiers (>,<,>=,<=,=) correctly * adds option "oldpackage", which is passed to zypper * this is implied as soon as a version is specified * it can be used independently to allow downgrades coming from repos * add __main__ check * extend documentation on version specifier
* zypper cleanup checks for failure/diff (#2569)Robin Roth2016-07-161-47/+21
| | | | | | | | | | * zypper cleanup checks for failure/diff * move check for changed/failed from functions back to main * handle all cases identially * generate diff together * fix module name
* Add zypper refresh support in zypper module (#2411)Andrii Radyk2016-07-131-6/+41
| | | | | | | | | | | | | * added zypper refresh support * removed trailing symbols * added forced zypper refresh support similar to update_cache for apt module * removed unnecessary blocks and cleaned up the logic for refresh * added update_cache as alias for refresh to be similar to apt/yum module * update zypper module according to comments
* zypper: (Bugfix) Change command option --verbose to --details which is ↵Alex2016-05-191-1/+1
| | | | supported since 2008 (#2224)
* refactor zypper moduleRobin Roth2016-05-041-188/+237
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refactor zypper module Cleanup: * remove mention of old_zypper (no longer supported) * requirement goes up to zypper 1.0, SLES 11.0, openSUSE 11.1 * allows to use newer features (xml output) * already done for zypper_repository * use zypper instead of rpm to get old version information, based on work by @jasonmader * don't use rpm, zypper can do everything itself * run zypper only twice, first to determine current state, then to apply changes New features: * determine change by parsing zypper xmlout * determine failure by checking return code * allow simulataneous installation/removal of packages (using '-' and '+' prefix) * allows to swap out alternatives without removing packages depending on them * implement checkmode, using zypper --dry-run * implement diffmode * implement 'name=* state=latest' and 'name=* state=latest type=patch' * add force parameter, handed to zypper to allow downgrade or change of vendor/architecture Fixes/Replaces: * fixes #1627, give changed=False on installed patches * fixes #2094, handling URLs for packages * fixes #1461, fixes #546, allow state=latest name='*' * fixes #299, changed=False on second install, actually this was fixed earlier, but it is explicitly tested now * fixes #1824, add type=application * fixes #1256, install rpm from path, this is done by passing URLs and paths directly to zypper * fix typo in package_update_all * minor fixes * remove commented code block * bump version added to 2.2 * deal with zypper return codes 103 and 106
* Remove duplicate documentation fieldsToshio Kuratomi2016-01-281-1/+0
|
* zypper: Add returncode to resultGuido Günther2015-11-181-3/+4
| | | | | This will be used in integration tssts and makes the whole thing more similar to the yum module.
* better cope with rpm not returning package nameRobin Roth2015-11-111-8/+3
| | | | | | | 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
* Merge pull request #371 from M0ses/develBrian Coca2015-10-231-0/+5
|\ | | | | fix errorhandling in zypper.py module
| * fix errorhandling in zypper.py moduleM0ses2015-04-021-0/+5
| | | | | | | | | | | | | | 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.
* | zypper: Add local/remote rpm installationAlexander Gubin2015-07-271-2/+24
| | | | | | | | Add remote rpm example
* | Changes to author formatting, remove emailsGreg DeKoenigsberg2015-06-161-1/+1
| |
* | more string correctionsBrian Coca2015-05-141-1/+1
| |
* | Adding author's github idGreg DeKoenigsberg2015-05-141-1/+1
| |
* | doc update for zypperBrian Coca2015-04-161-0/+1
| |
* | Add type property to zypperGregory Haynes2015-04-021-11/+19
|/ | | | | To install patterns and other package types a type parameter needs to be specified to zypper.
* Merge pull request #128 from robinro/patch_multiple_versions_rpm_zypperBrian Coca2015-03-311-20/+28
|\ | | | | Patch multiple versions rpm zypper
| * fixed tab/space mixRobin Roth2015-01-291-1/+1
| |
| * fix local changeRobin Roth2014-12-041-2/+2
| |
| * Allow multiple versions in rpm stateRobin Roth2014-12-041-20/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix bug in ansible get_package_state and get_current_version that breaks when there are multiple versions of a package installed and there is a list of packages to install. The previous implementation used 'zip' to match requested names to installed names which fails, because rpm outputs multiple lines per package when there are multiple versions. Testcase: Install opensuse, install multiple kernel versions (happens by update) Before patch: calling zypper: state=present for name={{item}} with_items: - kernel-desktop - git leads to ansible aborting. After the patch ansible performs as expected and makes sure both packages are present. Also the last version number is used for further update information in this version (before if only one package name was given the oldest version number was used).
* | zypper: Fix gpg check option for state=latest. --no-gpg-checks is used in ↵Alexander Gubin2014-12-161-6/+9
|/ | | | new and old zypper versions
* Fixing SuSE to SUSE as latter is the right one since some timeArtem Chernikov2014-11-101-2/+2
|
* Reorganization.Michael DeHaan2014-11-041-0/+282