ansible/packaging/os
Robin Roth 76142ddb97 Allow multiple versions in rpm state
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).
2014-12-04 11:25:06 +01:00
..
__init__.py Reorganization. 2014-11-04 17:31:59 -05:00
homebrew.py Reorganization. 2014-11-04 17:31:59 -05:00
homebrew_cask.py Reorganization. 2014-11-04 17:31:59 -05:00
homebrew_tap.py Reorganization. 2014-11-04 17:31:59 -05:00
layman.py Reorganization. 2014-11-04 17:31:59 -05:00
macports.py Reorganization. 2014-11-04 17:31:59 -05:00
openbsd_pkg.py Reorganization. 2014-11-04 17:31:59 -05:00
opkg.py Reorganization. 2014-11-04 17:31:59 -05:00
pacman.py Reorganization. 2014-11-04 17:31:59 -05:00
pkgin.py Reorganization. 2014-11-04 17:31:59 -05:00
pkgng.py Reorganization. 2014-11-04 17:31:59 -05:00
pkgutil.py Reorganization. 2014-11-04 17:31:59 -05:00
portage.py Reorganization. 2014-11-04 17:31:59 -05:00
portinstall.py Reorganization. 2014-11-04 17:31:59 -05:00
svr4pkg.py Reorganization. 2014-11-04 17:31:59 -05:00
swdepot.py Reorganization. 2014-11-04 17:31:59 -05:00
urpmi.py Reorganization. 2014-11-04 17:31:59 -05:00
zypper.py Allow multiple versions in rpm state 2014-12-04 11:25:06 +01:00
zypper_repository.py Reorganization. 2014-11-04 17:31:59 -05:00