Skip to content

Commit

Permalink
fix: Allow release parameter to be a string
Browse files Browse the repository at this point in the history
  • Loading branch information
Richterrettich committed Dec 18, 2021
1 parent fad3394 commit 1fa106c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn main() -> Result<(), AppError> {
}

builder = builder
.release(release.parse::<u16>().unwrap())
.release(release)
.epoch(epoch);

let files = matches
Expand Down
2 changes: 2 additions & 0 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ fn test_compressed() -> Result<(), Box<dyn std::error::Error>> {
"rpm-builder",
"-o",
&out_file.to_string_lossy(),
"--release",
"foo-bar",
"--pre-install-script",
&format!(
"{}/tests/test_assets/preinst.sh",
Expand Down

0 comments on commit 1fa106c

Please sign in to comment.