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

Jan Pazdziora jpazdziora at redhat.com
Thu Mar 31 15:38:24 UTC 2011


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