diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-01-22 16:28:15 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-01-25 15:35:21 +0100 |
commit | 34291a0442ac6fb66967543f1bbf465c0b3dd731 (patch) | |
tree | e4d2feb6fef85527710b6d3d4431903f041eab72 /src/commands/build.rs | |
parent | 5a51e23ba57491d100f4ffeac5c8657aaa1b011b (diff) |
Let the JobHandle::run() return a Vec<Artifact>
Before that change, it returned the dbmodels::Artifact objects, for which we
needed to fetch the filestore::Artifact again.
This change removes that restriction (improving runtime, of course).
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Tested-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/commands/build.rs')
-rw-r--r-- | src/commands/build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/build.rs b/src/commands/build.rs index c9a564b..86f205b 100644 --- a/src/commands/build.rs +++ b/src/commands/build.rs @@ -339,7 +339,7 @@ pub async fn build( writeln!(outlock, "Packages created:")?; } artifacts.into_iter().try_for_each(|artifact| { - writeln!(outlock, "-> {}", staging_dir.join(artifact.path).display()).map_err(Error::from) + writeln!(outlock, "-> {}", staging_dir.join(artifact.path()).display()).map_err(Error::from) })?; let mut had_error = false; |