From 0a549bf3e6c3abe77db0c8d137174e4f5d99fc51 Mon Sep 17 00:00:00 2001 From: Cesar Pecharroman Arribas Date: Tue, 7 Jun 2022 17:23:37 +0000 Subject: [PATCH] Adapt SRCREV to new overriding format --- src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 7f298ff..bc2d350 100644 --- a/src/main.rs +++ b/src/main.rs @@ -236,7 +236,12 @@ fn real_main(options: Args, config: &mut Config) -> CliResult { ); // save revision - src_uri_extras.push(format!("SRCREV_FORMAT .= \"_{}\"", pkg.name())); + if options.legacy_overrides { + src_uri_extras.push(format!("SRCREV_FORMAT .= \"_{}\"", pkg.name())); + } else { + src_uri_extras.push(format!("SRCREV_FORMAT .= \":{}\"", pkg.name())); + }; + let precise = if options.reproducible { src_id.precise()