Skip to content

Commit

Permalink
Adapt SRCREV to new overriding format
Browse files Browse the repository at this point in the history
  • Loading branch information
cesar-pa committed Jun 15, 2022
1 parent ba025f2 commit 0a549bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0a549bf

Please sign in to comment.