You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/packaging/os
Robin Roth e8fdba7593 Zypper repository rewrite (#1990)
* Remove support for ancient zypper versions

Even SLES11 has zypper 1.x.

* zypper_repository: don't silently ignore repo changes

So far when a repo URL changes this got silently ignored (leading to
incorrect package installations) due to this code:

    elif 'already exists. Please use another alias' in stderr:
        changed = False

Removing this reveals that we correctly detect that a repo definition
has changes (via repo_subset) but don't indicate this as change but as a
nonexistent repo. This makes us currenlty bail out silently in the above
statement.

To fix this distinguish between non existent and modified repos and
remove the repo first in case of modifications (since there is no force
option in zypper to overwrite it and 'zypper mr' uses different
arguments).

To do this we have to identify a repo by name, alias or url.

* Don't fail on empty values

This unbreaks deleting repositories

* refactor zypper_repository module

* add properties enabled and priority
* allow changing of one property and correctly report changed
* allow overwrite of multiple repositories by alias and URL
* cleanup of unused code and more structuring

* respect enabled option

* make zypper_repository conform to python2.4

* allow repo deletion only by alias

* check for non-existant url field and use alias instead

* remove empty notes and aliases

* add version_added for priority and overwrite_multiple

* add version requirement on zypper and distribution

* zypper 1.0 is enough and exists

* make suse versions note, not requirement

based on comment by @alxgu
9 years ago
..
__init__.py Reorganization. 10 years ago
apk.py Replace choices=BOOLEANS by type='bool', fix #1326 9 years ago
dnf.py Mark conf_file as a path, for various user expansion 9 years ago
homebrew.py Sprinkle some LANG/LC_* where command output is parsed (#2019) 9 years ago
homebrew_cask.py Sprinkle some LANG/LC_* where command output is parsed (#2019) 9 years ago
homebrew_tap.py Merge pull request #251 from kdisneur/hotfix/tap-prefixed-by-homebrew 9 years ago
layman.py added check_mode support 9 years ago
macports.py Adding author's github id 10 years ago
openbsd_pkg.py fix the spelling of vim's flavor in the example 9 years ago
opkg.py added version added 9 years ago
pacman.py Remove dead code from pacman module 9 years ago
pkg5.py Replace choices=BOOLEANS by type='bool', fix #1326 9 years ago
pkg5_publisher.py Replace choices=BOOLEANS by type='bool', fix #1326 9 years ago
pkgin.py pkgin: Fix bad regexp which did not catch packages such as p5-SVN-Notify 9 years ago
pkgng.py add chroot flag to pkgng in order to allow installation of packages into chroot environments, e.g. jails (#1218) 9 years ago
pkgutil.py added missing version_added 9 years ago
portage.py Use boolean instead of "yes" + choice for most option 9 years ago
portinstall.py Update for modules which import json. 9 years ago
slackpkg.py minor doc fix 9 years ago
svr4pkg.py svr4pkg: assume command worked only on known-to-be-good returncodes 10 years ago
swdepot.py fixed a typo in swdepot module 9 years ago
urpmi.py Update for modules which import json. 9 years ago
yum_repository.py Describing the _none_ value of the proxy option (#2053) 9 years ago
zypper.py Remove duplicate documentation fields 9 years ago
zypper_repository.py Zypper repository rewrite (#1990) 9 years ago