Skip to content

Commit

Permalink
fix: filename should leave out version part alone
Browse files Browse the repository at this point in the history
although this is what we call a hack, I don't remember
that file extensions use numbers. EXCEPT manpage files
of course :)

Signed-off-by: Soc Virnyl Estela <[email protected]>
  • Loading branch information
uncomfyhalomacro committed Oct 20, 2024
1 parent 68d1209 commit ef1e6f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libroast/src/operations/recomprizz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ pub fn recomprizz_opts(recomprizz_args: RecomprizzArgs) -> io::Result<()>
crate::common::Compression::Not => "tar",
};

let out_filename = format!("{}.{}", out_filename.display(), file_extension);

let roast_outpath = match recomprizz_args.outdir
{
Some(v) => v,
Expand All @@ -82,7 +84,7 @@ pub fn recomprizz_opts(recomprizz_args: RecomprizzArgs) -> io::Result<()>
let roast_args = RoastArgs {
target: outpath_for_raw.to_path_buf(),
additional_paths: None,
outfile: roast_outpath.join(out_filename.with_extension(file_extension)),
outfile: roast_outpath.join(out_filename),
preserve_root: false,
reproducible: recomprizz_args.reproducible,
};
Expand Down

0 comments on commit ef1e6f8

Please sign in to comment.