Skip to content

Commit 0a549bf

Browse files
committed
Adapt SRCREV to new overriding format
1 parent ba025f2 commit 0a549bf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,12 @@ fn real_main(options: Args, config: &mut Config) -> CliResult {
236236
);
237237

238238
// save revision
239-
src_uri_extras.push(format!("SRCREV_FORMAT .= \"_{}\"", pkg.name()));
239+
if options.legacy_overrides {
240+
src_uri_extras.push(format!("SRCREV_FORMAT .= \"_{}\"", pkg.name()));
241+
} else {
242+
src_uri_extras.push(format!("SRCREV_FORMAT .= \":{}\"", pkg.name()));
243+
};
244+
240245

241246
let precise = if options.reproducible {
242247
src_id.precise()

0 commit comments

Comments
 (0)