[Spacewalk-list] packages.findByNvrea API method - not 100% successful

Tim Lank timlank at timlank.com
Thu Mar 31 17:46:47 UTC 2011


This was indeed the cause for the problem.  Once I changed my perl
code, everything matches 100%.

Very tricky.  Thanks for your help.

Tim

On Thu, Mar 31, 2011 at 11:38 AM, Jan Pazdziora <jpazdziora at redhat.com> wrote:
> On Thu, Mar 31, 2011 at 09:16:23AM -0400, Tim Lank wrote:
>> Here is the list of 24:
>>
>> name, version, release, epoch, archLabel
>>
>> bitstream-vera-fonts 1.10 4 (none) noarch
>
> I believe your issue is that even if you think you pass in string
> '1.10' for the version, your client converts it to number and sends
> it as 1.1.
>
> For example, in Perl,
>
>        @data = $client->call('packages.findByNvrea', $session,
>                'bitstream-vera-fonts', '1.10', '4', '', 'noarch');
>
> will not work while
>
>        @data = $client->call('packages.findByNvrea', $session,
>                'bitstream-vera-fonts',
>                Frontier::Client->string('1.10'), '4', '', 'noarch');
>
> will.
>
> Please add an explicit string type, in whatever programming
> environment you use on the client.
>
> --
> Jan Pazdziora
> Principal Software Engineer, Satellite Engineering, Red Hat
>




More information about the Spacewalk-list mailing list