Commit graph

9 commits

Author SHA1 Message Date
Brian Coca
698098ae57 doc update for zypper 2015-04-16 09:45:23 -04:00
Gregory Haynes
44280e461c Add type property to zypper
To install patterns and other package types a type parameter needs to be
specified to zypper.
2015-04-02 14:08:42 -07:00
Brian Coca
512c684b52 Merge pull request #128 from robinro/patch_multiple_versions_rpm_zypper
Patch multiple versions rpm zypper
2015-03-31 23:56:28 -04:00
Robin Roth
23495a16f4 fixed tab/space mix 2015-01-29 10:32:09 +01:00
Alexander Gubin
50a8774784 zypper: Fix gpg check option for state=latest. --no-gpg-checks is used in new and old zypper versions 2014-12-16 14:35:46 +01:00
Robin Roth
7948b91bad fix local change 2014-12-04 11:28:18 +01:00
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
Artem Chernikov
5a8652e7bc Fixing SuSE to SUSE as latter is the right one since some time 2014-11-10 17:42:43 +01:00
Michael DeHaan
7e6fc7023d Reorganization. 2014-11-04 17:31:59 -05:00
Renamed from packaging/zypper.py (Browse further)