Skip to content

Commit

Permalink
fix: Actually set release when option is given
Browse files Browse the repository at this point in the history
  • Loading branch information
rene committed Oct 7, 2019
1 parent a382c32 commit cd68121
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ fn main() -> Result<(), AppError> {
let arch = matches.value_of("arch").unwrap();
let description = matches.value_of("desc").unwrap();

let release = matches.value_of("release").unwrap();

let output_path = match matches.value_of("out") {
Some(p) => p.to_string(),
None => format!("./{}.rpm", name),
Expand All @@ -33,6 +35,8 @@ fn main() -> Result<(), AppError> {
builder = builder.with_file(src, options)?;
}

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

let files = matches
.values_of("exec-file")
.map(|v| v.collect())
Expand Down

0 comments on commit cd68121

Please sign in to comment.