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

Brian Collins brianc at sedata.com
Thu Mar 31 16:46:42 UTC 2011


> 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.

Interesting, and good catch.  I'm using python on my end, and my
'version' variable was interpreted as string by default.  I passed my
arguments on the command-line, though.  I'm going to try reading from a
text file and see if I get the same result.




More information about the Spacewalk-list mailing list