dskvr / opkg

Automatically exported from code.google.com/p/opkg
0 stars 0 forks source link

opkg_find_package returns packages when no package found #69

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use opkg_find_package to search a package that not exists (Ej: name 
"kdadkjhsdf", version "4.0", arch "noexists", repo "dflskjfdas")
2. Read the function returned value

What is the expected output? What do you see instead?

I expected a NULL value o other value that indicates that desired package was 
not found but i see that the returned struct have data of another package that 
exists but isn't the desired package.

What version of the product are you using? On what operating system?
0.1.8

Please provide any additional information below.
I provide a patch that i think resolve this problem. But it would be inspected 
by the opkg people.

Original issue reported on code.google.com by julio...@gmail.com on 13 Nov 2010 at 12:26

Attachments:

GoogleCodeExporter commented 8 years ago
I've applied a slightly modified change as r579. Thanks for the report and the 
patch.

In the future, if you can use the unified diff format for patches, that would 
make them easier to review and apply. (e.g. diff -u file.c.orig file.c; or svn 
diff file.c; or git diff file.c)

Original comment by graham.g...@gmail.com on 15 Nov 2010 at 10:50

GoogleCodeExporter commented 8 years ago
Okay. Next time I will use it.

Congratulations for your Tools.

-----Mensaje original-----
De: opkg@googlecode.com [mailto:opkg@googlecode.com] 
Enviado el: lunes, 15 de noviembre de 2010 23:51
Para: juliosao@gmail.com
Asunto: Re: Issue 69 in opkg: opkg_find_package returns packages when no
package found

Original comment by julio...@gmail.com on 16 Nov 2010 at 7:42