summaryrefslogtreecommitdiffstats
path: root/src/job
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-03 08:29:37 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-12-03 08:29:37 +0100
commit32db7e255f18d8f9514de423bd65264d2090949e (patch)
tree8a1636aabd91a8cc8391f156b2018216e90a4697 /src/job
parent6d1abb2d5c05869d3b2e966efad0ba34aafe578b (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 'src/job')
-rw-r--r--src/job/runnable.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/job/runnable.rs b/src/job/runnable.rs
index 67219fb..ab2d6ca 100644
--- a/src/job/runnable.rs
+++ b/src/job/runnable.rs
@@ -80,8 +80,8 @@ impl RunnableJob {
}
- pub fn package_source(&self) -> SourceEntry {
- self.source_cache.source_for(&self.package())
+ pub fn package_sources(&self) -> Vec<SourceEntry> {
+ self.source_cache.sources_for(&self.package())
}
pub fn environment(&self) -> Vec<(String, String)> {