Skip to content

Conversation

@joebonrichie
Copy link
Contributor

No description provided.

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.
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 this pull request may close these issues.

1 participant