On 09/18/2012 01:40 PM, no-re...@cfengine.com wrote: > Forum: CFEngine Help > Subject: Re: rpm_version package provider > Author: neilhwatson > Link to topic: https://cfengine.com/forum/read.php?3,27409,27410#msg-27410 > > I think that the trailing -1 might be a release rather part of the version. > Try the version as 5.9p1. See the stdlib for the actual RPM command that the > packages body uses to gather this information. > > rpm -qa --queryformat "i | repos | %{name} | %{version}-%{release} | > %{arch}\n"|grep ssh > i | repos | openssh-server | 4.3p2-82.el5 | x86_64 > i | repos | openssh-clients | 4.3p2-82.el5 | x86_64 > i | repos | openssh | 4.3p2-82.el5 | x86_64 > i | repos | openssh-askpass | 4.3p2-82.el5 | x86_64
Yeah, it looks to me like it uses 4.3p2-82.el5 (%{version}-%{release}) as the package_list_version_regex "[^|]+\|[^|]+\|[^|]+\|\s+([^\s|]+).*"; When I try with 5.9p1 it complains that it is unable to find any packages in the directory to consider installing. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine