From 8f2029ad9b4403e2534e98a18503b93265f6b5a7bf7a7eebbe2eeade3aab7aa2 Mon Sep 17 00:00:00 2001 From: James Fehlig Date: Mon, 29 Jan 2024 17:08:29 +0000 Subject: [PATCH] Accepting request 1141334 from home:jfehlig:branches:Virtualization - Update to version 1.3.0 (jsc#PED-4981): * tests: add tests for live and defined support * doc: document live support and its options * cli: add live and defined parameters to modify command * callouts: add callout live event support * main: refactor jsonfile loading * main: refactor getting active devices * tests: add callout versioning tests * callouts: add warning for unknown supported actions and events * callouts: prevent repeating unsuccessful script searches * callouts: add versioning on callout scripts * callouts: make callout method reusable * callouts: add a check_result_fn to invoke_first_matching_script * Fix new clippy warnings * Cargo.toml: move tempfile to dev-dependencies * main: assemble active devices without overwriting * mdevctl.spec.in: Add systemd as build requirement * callout: ignore broken pipe on stdin * cli: improve lsmdev help * callouts: set script in callout on success only * main: fix file open error being suppressed * Fix clippy warning for useless vec * callouts: replace negated check and improve msgs * callouts: improve debug messages in get_attributes * callouts: match code format in Display for Event and Action * tests/callouts: make scripts cross distro compliant * actions: update release action to newer versions * Bump clap to 4.0 * Bump env_logger dependency to 0.9.0 * Fix deprecated github actions OBS-URL: https://build.opensuse.org/request/show/1141334 OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=17 --- _service | 6 ++-- _servicedata | 2 +- mdevctl-1.2.0.tar.xz | 3 -- mdevctl-1.3.0.tar.xz | 3 ++ mdevctl.changes | 83 ++++++++++++++++++++++++++++++++++++++++++++ mdevctl.spec | 9 +++-- vendor.tar.zst | 4 +-- 7 files changed, 96 insertions(+), 14 deletions(-) delete mode 100644 mdevctl-1.2.0.tar.xz create mode 100644 mdevctl-1.3.0.tar.xz diff --git a/_service b/_service index e034a26..3c36322 100644 --- a/_service +++ b/_service @@ -1,7 +1,7 @@ mdevctl - v1.2.0 + v1.3.0 git disable https://github.com/mdevctl/mdevctl @@ -15,11 +15,11 @@ - mdevctl-1.2.0 + mdevctl-1.3.0 zst true - mdevctl-1.2.0 + mdevctl-1.3.0 diff --git a/_servicedata b/_servicedata index 83cfb5c..ec9b59d 100644 --- a/_servicedata +++ b/_servicedata @@ -1,4 +1,4 @@ https://github.com/mdevctl/mdevctl - ec4b9a04ce15ad7dccef2dc99b20a53987eb16bc \ No newline at end of file + 54db334d834017e0f97641a0172ca91358d4cf59 \ No newline at end of file diff --git a/mdevctl-1.2.0.tar.xz b/mdevctl-1.2.0.tar.xz deleted file mode 100644 index 9f0295e..0000000 --- a/mdevctl-1.2.0.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e5b2bac4c31cabab99bce751a5b60cdab50514a19d0442bdb564105e8055309d -size 38884 diff --git a/mdevctl-1.3.0.tar.xz b/mdevctl-1.3.0.tar.xz new file mode 100644 index 0000000..76e970b --- /dev/null +++ b/mdevctl-1.3.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac8581745b50ad4c0cc1a582b55d439659e75c0ab4aca9e72d7e7dea016a59a3 +size 46692 diff --git a/mdevctl.changes b/mdevctl.changes index 457af39..ffcde74 100644 --- a/mdevctl.changes +++ b/mdevctl.changes @@ -1,3 +1,86 @@ +------------------------------------------------------------------- +Wed Jan 24 14:05:47 UTC 2024 - jfehlig@suse.com + +- Update to version 1.3.0 (jsc#PED-4981): + * tests: add tests for live and defined support + * doc: document live support and its options + * cli: add live and defined parameters to modify command + * callouts: add callout live event support + * main: refactor jsonfile loading + * main: refactor getting active devices + * tests: add callout versioning tests + * callouts: add warning for unknown supported actions and events + * callouts: prevent repeating unsuccessful script searches + * callouts: add versioning on callout scripts + * callouts: make callout method reusable + * callouts: add a check_result_fn to invoke_first_matching_script + * Fix new clippy warnings + * Cargo.toml: move tempfile to dev-dependencies + * main: assemble active devices without overwriting + * mdevctl.spec.in: Add systemd as build requirement + * callout: ignore broken pipe on stdin + * cli: improve lsmdev help + * callouts: set script in callout on success only + * main: fix file open error being suppressed + * Fix clippy warning for useless vec + * callouts: replace negated check and improve msgs + * callouts: improve debug messages in get_attributes + * callouts: match code format in Display for Event and Action + * tests/callouts: make scripts cross distro compliant + * actions: update release action to newer versions + * Bump clap to 4.0 + * Bump env_logger dependency to 0.9.0 + * Fix deprecated github actions + * cli: change modify parameter relationships + * tests: use printf over echo + * tests: add callout constructor panic tests + * callouts: add MDev to callout struct + * callouts: Move stdin generation from Callout::invoke_script() + * callouts: Add a Callout argument to the invoke callback function + * callouts: Reuse Callout::callout() for get_attributes() + * callouts: Return Output from Callout::callout() + * callouts: Remove Callout::callout_dir() + * callouts: Move self.script invocation to callout() + * callouts: make Callout::invoke() a method + * mdev: provide better error message for invalid attr index + * mdev: change attribute index arguments to usize + * cli: adjust help text for modify option addattr + * modify: ensure required parameter is given + * trim trailing null from callout script get-attributes output + * Add --force option for commands that have callouts + * Bump 'nix' dependency + * tests: test 'stop' with callouts + * tests: remove stray debug prints during fork + * tests: make test failure reports more obvious + * Bump version to 1.3.0 + * undefine: report error if device is not undefined + * modify: add jsonfile optional parameter + * cli: add cli tests + * cli: fix clap deprecations warnings + * tests: fix test_modify() when auto and manual are both set + * Fix panic on modify delattr with invalid index + * Active attributes (#71) + * clippy: remove needless borrows + * mdevctl.rst: align use of term state + * Add tests for callout dir priority + * Add system callout script dir outside /etc. + * Add ability to set env root with env variable + * Rename Environment::persist_base() to config_base() + * Update github checkout action + * Relax 'nix' dependency version requirement + * callouts: remove return value from Callout::notify() + * callouts: remove separate is_dir() check in notify() + * callouts: filter and map iterator in notifier loop + * Update uuid version + * tests: verify that callout scripts are executed in order + * callouts: make sure scripts are sorted + * callouts: simplify loop through callout dir + * callouts: Remove call to count() on callout dir entries + * Fix new clippy warnings + * Fix intermittent callout failure during test + * rpm: set debug env vars when running tests in rpm build + * Add python3-docutils to rpm BuildRequires + ------------------------------------------------------------------- Sun Dec 11 18:19:52 UTC 2022 - dmueller@suse.com diff --git a/mdevctl.spec b/mdevctl.spec index 4c14bcb..6092c19 100644 --- a/mdevctl.spec +++ b/mdevctl.spec @@ -1,7 +1,7 @@ # # spec file for package mdevctl # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: mdevctl -Version: 1.2.0 +Version: 1.3.0 Release: 0 Summary: Mediated device management and persistence utility License: LGPL-2.1-or-later @@ -68,9 +68,8 @@ cargo test %{_sbindir}/lsmdev %{_udevrulesdir}/60-mdevctl.rules %dir %{_sysconfdir}/mdevctl.d -%dir %{_sysconfdir}/mdevctl.d/scripts.d -%dir %{_sysconfdir}/mdevctl.d/scripts.d/callouts -%dir %{_sysconfdir}/mdevctl.d/scripts.d/notifiers +%dir %{_prefix}/lib/mdevctl +%dir %{_prefix}/lib/mdevctl/scripts.d %{_mandir}/man8/mdevctl.8%{?ext_man} %{_mandir}/man8/lsmdev.8%{?ext_man} %{_datadir}/bash-completion/completions/mdevctl diff --git a/vendor.tar.zst b/vendor.tar.zst index 8486707..40518f3 100644 --- a/vendor.tar.zst +++ b/vendor.tar.zst @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e80f4cab98aba1d1f7e071ba97a06ba8f21ebf85e37b209bba27f9c044e13640 -size 7855546 +oid sha256:585a8e9e01a9be0375e5a6b7975f2c33246a7bd1c32c592b3bf6d65f8a115570 +size 16351382