-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zypper module expands to <pkg>-<version definition> AND <pkg> #23516
Comments
@Popyllol Thanks for this bug report. It happens in One should either remove the versioned entries from Do you want to have a go at fixing this? |
Thanks for you investigation so far! |
If someone else can have a go I'd be happy to help/review. If not I'll probably fix it myself some time in the future. |
Remove packages found in install_version from name_install. Fixes ansible#23516 Signed-off-by: Alberto Murillo Silva <alberto.murillo.silva@intel.com>
@Popyllol Can u test this patch? I do not have an environment with suse and two repos with different version of the same package. But I did check that the versioned package is included once in the cmdline and not twice as before. |
COMPONENT NAME
zypper_module
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
I have in a role a tasks/main.yml which contains:
and a library/setup_packages.yml which contains:
When I call this with a list wanted_packages like this:
wanted_packages:
This fails for me because there are two versions of rlwrap in the repository directory. Only the older one is installable in my context. So I tried to set a specific version. But the zypper module generates a commandline with both "rlwrap=0.37-2.1" AND "rlwrap" which leads into a failure.
The output is:
Why is it expanding to both?
If it is needed a switch like exact_version or so which leads only to the specific version would be nice.
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: