diff --git a/src/main.rs b/src/main.rs index fcec3bd..0c90472 100644 --- a/src/main.rs +++ b/src/main.rs @@ -237,7 +237,12 @@ fn real_main(options: Args, gctx: &mut GlobalContext) -> 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_git_fragment()