-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rpc-sys packagelist lists 'not-installed' packages #6
Comments
Aha,
gives
|
Good catch on the The wanted state is We can change the sscanf line to parse the current state into a variable then compare that to "installed". |
I didn't read through
|
Don't rely on sscanf() doesn't care about unused suffixes of the status string. Use strstr() instead to make sure only actually installed packages are returned. Suggested-by: Eric Fahlgren <ericfahlgren@gmail.com> Reported-by: Eric Fahlgren <ericfahlgren@gmail.com> Fixes: openwrt#6 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
@jck112 @dangowrt
Running x86/64 SNAPSHOT r26829.
Expecting to get
libustream-mbedtls
only, but get theopenssl
version:Looking in the package status we see both packages, but
openssl
version isnot-installed
andmbedtls
version isinstalled
. (I have no idea how this came to be in this state, I install/remove packages on this test machine constantly.)Seems like something is not right around https://github.com/openwrt/rpcd/blob/master/sys.c#L241.
installed
seems like it should befalse
for thessl
package...The opkg
status
file is well-formed; if I manually edit out the whole not-installed package entry, then everything works as expected.The text was updated successfully, but these errors were encountered: