mirror of
https://codeberg.org/Toasterson/ips.git
synced 2026-04-10 21:30:41 +00:00
Hotfix to add ! property value characters
This commit is contained in:
parent
8e08c9910b
commit
f67ceb4b05
5 changed files with 10 additions and 10 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
|
@ -561,7 +561,7 @@ checksum = "ba4aede83fc3617411dc6993bc8c70919750c1c257c6ca6a502aed6e0e2394ae"
|
|||
|
||||
[[package]]
|
||||
name = "libips"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
dependencies = [
|
||||
"failure",
|
||||
"maplit 0.1.6",
|
||||
|
|
@ -841,7 +841,7 @@ version = "0.0.1-placeholder"
|
|||
|
||||
[[package]]
|
||||
name = "pkg6dev"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"failure",
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
[package]
|
||||
name = "libips"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
authors = ["Till Wegmueller <till.wegmueller@openflowlabs.com>"]
|
||||
edition = "2018"
|
||||
license-file = "../LICENSE"
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ transform_action = @{ transform_character*}
|
|||
transform = {"<transform " ~ action_name ~ " " ~ property+ ~ " "? ~ "->" ~ " "? ~ transform_action ~ ">" }
|
||||
|
||||
property_name = @{ ( ASCII_ALPHANUMERIC | "." | "_" | "-" | "/" )+ }
|
||||
property_value = @{ ( ASCII_ALPHANUMERIC | "/" | "," | "." | "_" | "-" | "%" | "*" | "@" | "(" | ")" | "$" | ":" | "+" | "'" | "\\" )+ | quoted_string }
|
||||
property_value = @{ ( ASCII_ALPHANUMERIC | "/" | "," | "." | "_" | "-" | "%" | "*" | "@" | "(" | ")" | "$" | ":" | "+" | "'" | "\\" | "!" )+ | quoted_string }
|
||||
payload = @{ property_value }
|
||||
property = { property_name ~ "=" ~ property_value }
|
||||
action = { action_name ~ (( " " ~ payload ~ " " ) | " ")? ~ (property ~ " "?)+ ~ (" " | NEWLINE | EOI) }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "pkg6dev"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
authors = ["Till Wegmueller <till.wegmueller@openflowlabs.com>"]
|
||||
edition = "2018"
|
||||
license-file = "LICENSE"
|
||||
|
|
@ -12,7 +12,7 @@ keywords = ["packaging", "illumos"]
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
libips = {path = "../libips", version = "0.1.0"}
|
||||
libips = {path = "../libips", version = "0.1.1"}
|
||||
userland = {path = "../userland"}
|
||||
failure = "0.1.8"
|
||||
failure_derive = "0.1.8"
|
||||
|
|
|
|||
|
|
@ -22,16 +22,16 @@ use userland::repology::{find_newest_version};
|
|||
fn main() {
|
||||
let component_arg = Arg::new("component")
|
||||
.takes_value(true)
|
||||
.default_value("../sample_data/pkgs/cups");
|
||||
|
||||
//.default_value("../sample_data/pkgs/cups");
|
||||
.default_value("./");
|
||||
let opts = app_from_crate!().subcommand(App::new("diff-component")
|
||||
.about("shows differences between sample-manifest and manifests")
|
||||
.arg(&component_arg)
|
||||
).subcommand(App::new("show-component")
|
||||
.about("Show informations about the component")
|
||||
.arg(&component_arg)
|
||||
)//.get_matches();
|
||||
.get_matches_from(vec!["pkg6dev", "show-component"]);
|
||||
).get_matches();
|
||||
//.get_matches_from(vec!["pkg6dev", "show-component"]);
|
||||
|
||||
if let Some(diff_component_opts) = opts.subcommand_matches("diff-component") {
|
||||
let res = diff_component(diff_component_opts);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue