Skip to content

Commit f581faf

Browse files
authored
Fix stamping tarball version if there is none yet (#54)
1 parent dd1a2f5 commit f581faf

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "omicron-zone-package"
3-
version = "0.9.0"
3+
version = "0.9.1"
44
authors = ["Sean Klein <[email protected]>"]
55
edition = "2018"
66
#

src/package.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,11 @@ impl Package {
425425
reader.unpack(tmp.path())?;
426426

427427
// Remove the placeholder version
428-
std::fs::remove_file(tmp.path().join("VERSION"))?;
428+
if let Err(err) = std::fs::remove_file(tmp.path().join("VERSION")) {
429+
if err.kind() != std::io::ErrorKind::NotFound {
430+
return Err(err.into());
431+
}
432+
}
429433

430434
// Create the new tarball
431435
let file = create_tarfile(&stamp_path)?;

0 commit comments

Comments
 (0)