From cf0548d32d6b9013204e64976d2ff2f1381bcf27 Mon Sep 17 00:00:00 2001 From: "Arnaud G. GIBERT" Date: Sun, 3 May 2026 11:34:28 +0200 Subject: [PATCH] - Add new sh_exec FORCE option to all library non write actions. --- ReleaseNotes.txt | 3 ++- SPECS/music_tools.spec | 5 ++++- lib/rx3/music_tools.bash | 6 +++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index 5376368..dfeb1a9 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -1,9 +1,10 @@ ------------------------------------------------------------------------------------------------------------------------------------ -Music Tools V 1.1.1 - A. GIBERT - 2026/05/02 +Music Tools V 1.1.1 - A. GIBERT - 2026/05/03 ------------------------------------------------------------------------------------------------------------------------------------ - Move usr/lib to lib, - Support rx3-base 1.1.2, +- Add new sh_exec FORCE option to all library non write actions, - Bump release from 1.0.x to 1.1.x. diff --git a/SPECS/music_tools.spec b/SPECS/music_tools.spec index e82ac6c..899d3f6 100644 --- a/SPECS/music_tools.spec +++ b/SPECS/music_tools.spec @@ -51,6 +51,8 @@ Packager: Arnaud G. GIBERT BuildArch: noarch +Requires: rx3-base-libs + Source0: https://git.rx3.org/gitea/rx3/%{name}/archive/%{name}-%{version}.tar.gz @@ -125,8 +127,9 @@ cp bin/* %{buildroot}%{_bindir} #----------------------------------------------------------------------------------------------------------------------------------- %changelog -* Sat May 2 2026 Arnaud G. GIBERT - 1.1.1-1rx3.mga9 +* Sun May 3 2026 Arnaud G. GIBERT - 1.1.1-1rx3.mga9 - Update to 1.1.1 release +- Add rx3-base-libs depedency * Sun Apr 12 2026 Arnaud G. GIBERT - 1.1.0-1rx3.mga9 - Initial release diff --git a/lib/rx3/music_tools.bash b/lib/rx3/music_tools.bash index 699fed8..acd3578 100644 --- a/lib/rx3/music_tools.bash +++ b/lib/rx3/music_tools.bash @@ -510,12 +510,12 @@ mt_tag_read() case "${track_file}" in *.flac) - sh_exec "metaflac --show-tag=\"${tag}\" \"${track_file}\" | sed -e 's/^[^=]*=//' -e ':a' -e 'N' -e '"'$!'"ba' -e 's/\n/\\n/g'" + sh_exec FORCE "metaflac --show-tag=\"${tag}\" \"${track_file}\" | sed -e 's/^[^=]*=//' -e ':a' -e 'N' -e '"'$!'"ba' -e 's/\n/\\n/g'" ;; *.mp3) -# sh_exec "mid3v2 --list \"${track_file}\" | tail -n +2 | sed -e 's/^[^=]*=/\U&\E/' | grep -e \"^${MT_FLAC_2_MP3_TAB[\"${tag}\"]}\" | sed -e 's/^[^=]*=//' -e ':a' -e 'N' -e '"'$!'"ba' -e 's/\n/\\n/g'" - sh_exec "mid3v2 --list \"${track_file}\" | tail -n +2 | grep -e \"^${tag}\" | sed -e 's/^[^=]*=//' -e ':a' -e 'N' -e '"'$!'"ba' -e 's/\n/\\n/g'" +# sh_exec FORCE "mid3v2 --list \"${track_file}\" | tail -n +2 | sed -e 's/^[^=]*=/\U&\E/' | grep -e \"^${MT_FLAC_2_MP3_TAB[\"${tag}\"]}\" | sed -e 's/^[^=]*=//' -e ':a' -e 'N' -e '"'$!'"ba' -e 's/\n/\\n/g'" + sh_exec FORCE "mid3v2 --list \"${track_file}\" | tail -n +2 | grep -e \"^${tag}\" | sed -e 's/^[^=]*=//' -e ':a' -e 'N' -e '"'$!'"ba' -e 's/\n/\\n/g'" ;; *)