WIP: Changes in moss required by packagekit backend#548
Draft
joebonrichie wants to merge 4 commits intoAerynOS:mainfrom
Draft
WIP: Changes in moss required by packagekit backend#548joebonrichie wants to merge 4 commits intoAerynOS:mainfrom
joebonrichie wants to merge 4 commits intoAerynOS:mainfrom
Conversation
Returns a progress callback from 0-100% for each stage Initally added for the moss packagekit backend
Used by the moss packagekit backend to move the downloaded stone into the specified user directory. Using the existing code here allows it to not neednessly re-download already cached stones.
This is admittedly a bit of a hack in order to get an origin from a package, without reorchestrating how repos work. Importantly, it is not added to the moss db. The origin of packages is fundamental to how package ids work in packagekit which consist of name:version:arch:data. the data field may look like: "installed:volatile" for installed packages with a origin "volatile" if available and not installed "installed" if installed without a repo origin These package ids get passed everywhere in packagekit so it is important they are constructed properly.
By using an atomic total bytes to download, we can get a nice smooth progress bar of all packages as they download despite being async. This doesn't account for unpacking or db storing yet. We may also wish to spit the individual progress reporting in the future as well.
f6e6070 to
73bbb09
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.