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