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

DB Generation updates #135

Merged
merged 7 commits into from
Aug 26, 2024
Merged

Conversation

LordTermor
Copy link
Collaborator

@LordTermor LordTermor commented Aug 13, 2024

Implements a bunch of fixes/features/performance improvements related to database generation logic.

Closes #100, #120, #121, #136

@LordTermor LordTermor added bug Something isn't working enhancement New feature or request Daemon Changes related to the backend labels Aug 13, 2024
@LordTermor LordTermor self-assigned this Aug 13, 2024
@LordTermor LordTermor marked this pull request as ready for review August 22, 2024 12:10
@LordTermor LordTermor changed the title DB Generation fixes DB Generation updates Aug 22, 2024
@LordTermor LordTermor added this to the v0.2.0 milestone Aug 22, 2024
dbcli/dbcli.cpp Outdated
@@ -62,8 +63,28 @@ int validate_and_rebuild(lmdb::txn& transaction,
continue;
}

std::string signature = "";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

std::string is already empty initialized.

Makes use of PGPSIG desc-file field, saving b64 encoded package signature contents into it
in addition to a detached .sig-file.
Checks PGPSIG field of downloaded database descriptions instead of always downloading a
 detached .sig-file. This saves times on additional downloads.
Added missing error strings for ParsingError.
Fixes a number of issues (anydistro#136, anydistro#120) by adding a size parameter for constructing
string_view from vector of uint8s.
Adds dbcli validate/rebuild check for desc file correctness according to the package's
pkginfo. Useful in case is desc-file in database is corrupted.
@LordTermor LordTermor merged commit 1e93ee1 into anydistro:master Aug 26, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Daemon Changes related to the backend enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding the same package twice erroneously increments link counter
2 participants