diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-12-03 08:29:37 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-12-03 08:29:37 +0100 |
commit | 32db7e255f18d8f9514de423bd65264d2090949e (patch) | |
tree | 8a1636aabd91a8cc8391f156b2018216e90a4697 /examples/packages/example_2/sub/pkg1/1.0.0/pkg.toml | |
parent | 6d1abb2d5c05869d3b2e966efad0ba34aafe578b (diff) |
Allow multiple sources per package
This patch implements multiple (unnamed) sources per package.
This means that a package can have an array of sources.
What was adapted to allow multiple sources per package:
* Downloads are made in parallel now
* The cache structure was changed to /<package>-<version>/<hash>.source
* The UI was changed to contain the full `Package` struct (as JSON
object) in a UI format string
Tests were adapted.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'examples/packages/example_2/sub/pkg1/1.0.0/pkg.toml')
-rw-r--r-- | examples/packages/example_2/sub/pkg1/1.0.0/pkg.toml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/packages/example_2/sub/pkg1/1.0.0/pkg.toml b/examples/packages/example_2/sub/pkg1/1.0.0/pkg.toml index bcb9678..9788036 100644 --- a/examples/packages/example_2/sub/pkg1/1.0.0/pkg.toml +++ b/examples/packages/example_2/sub/pkg1/1.0.0/pkg.toml @@ -1,6 +1,6 @@ version = "1.0.0" -[source] +[[sources]] url = "http://somerandomthi.ng/foo/bar-1.0.0.tar.gz" hash.type = "sha1" hash.hash = "23465" |