Skip to content

Commit

Permalink
Merge pull request #76 from cat-in-136/revert-75-upgrade-rpm-crate
Browse files Browse the repository at this point in the history
Upgrade rpm crates to v0.11.0
  • Loading branch information
cat-in-136 authored May 27, 2023
2 parents 5298d97 + 7937a9f commit 522a8b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ edition = "2018"

[dependencies]
glob = "0.3.0"
rpm = "0.10.0"
rpm = "0.9.0-alpha.1"
toml = "0.7"
cargo_toml = "0.15"
getopts = "0.2"
Expand Down
4 changes: 2 additions & 2 deletions src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::str::FromStr;

use cargo_toml::Error as CargoTomlError;
use cargo_toml::Manifest;
use rpm::{CompressionType, Dependency, RPMBuilder};
use rpm::{Compressor, Dependency, RPMBuilder};
use toml::value::Table;

use crate::auto_req::{find_requires, AutoReqMode};
Expand Down Expand Up @@ -171,7 +171,7 @@ impl Config {
let parent = self.manifest_path.parent().unwrap();

let mut builder = RPMBuilder::new(name, version, license, arch.as_str(), desc)
.compression(CompressionType::from_str(rpm_builder_config.payload_compress)?);
.compression(Compressor::from_str(rpm_builder_config.payload_compress)?);
for (idx, file) in files.iter().enumerate() {
let entries =
file.generate_rpm_file_entry(rpm_builder_config.build_target, parent, idx)?;
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ fn parse_arg() -> Result<(BuildTarget, Option<PathBuf>, Option<String>, CliSetti
"",
"payload-compress",
"Compression type of package payloads. \
none, gzip, zstd(Default) or xz.",
none, gzip or zstd(Default).",
"TYPE",
);
opts.optmulti(
Expand Down

0 comments on commit 522a8b0

Please sign in to comment.