Skip to content
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

xbps-pkgdb prints weird error message when checking a package #351

Open
ericonr opened this issue Dec 2, 2020 · 1 comment · May be fixed by #352
Open

xbps-pkgdb prints weird error message when checking a package #351

ericonr opened this issue Dec 2, 2020 · 1 comment · May be fixed by #352

Comments

@ericonr
Copy link
Member

ericonr commented Dec 2, 2020

I haven't investigated exactly why this happens, but:

# doas cp /bin/ls /bin/7z
# xbps-pkgdb p7zip
ERROR: p7zip: hash mismatch for /usr/bin/7z.
ERROR: p7zip: files check FAILED.
Failed to check `p7zip': Operation not permitted

The last part of the message seems to be passing a bad value to strerror.

@ericonr
Copy link
Member Author

ericonr commented Dec 4, 2020

The error returned by check_pkg_integrity is 0 or 1, but it's printed by strerror(), which doesn't make sense. So just need to decide on the best way of showing this.

@ericonr ericonr linked a pull request Dec 5, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant