diff options
author | Andreas Voegele <andreas@andreasvoegele.com> | 2018-05-21 19:31:41 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-05-26 06:59:23 +0700 |
commit | bae37de38323d4187ae7b77cf5fc4fd426f807e7 (patch) | |
tree | dd0fe236fb786b45cbddbff7192569e524b5fe7e /audio/abcde/padding.diff | |
parent | 765f1fc463a9e77abd9e9e15cb1b815be05a2bd6 (diff) |
audio/abcde: Updated for version 2.9.1.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'audio/abcde/padding.diff')
-rw-r--r-- | audio/abcde/padding.diff | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/audio/abcde/padding.diff b/audio/abcde/padding.diff new file mode 100644 index 0000000000000..545834f7bd89c --- /dev/null +++ b/audio/abcde/padding.diff @@ -0,0 +1,32 @@ +Fix wrong track padding caused by trailing space. Reported under +https://abcde.einval.com/bugzilla/show_bug.cgi?id=82. + +--- abcde-2.9.1.orig/abcde 2018-03-10 00:03:50.000000000 +0100 ++++ abcde-2.9.1/abcde 2018-05-21 14:56:20.999531963 +0200 +@@ -2103,7 +2103,7 @@ + log warning "something went wrong while querying the CD... Maybe a DATA CD or the CD is not loaded?" + fi + +- TRACKS="$(echo "$CDPARANOIAOUTPUT" | grep -E '^[[:space:]]+[[:digit:]]' | tail -n 1 | get_first | tr -d "." | tr '\n' ' ')" ++ TRACKS="$(echo "$CDPARANOIAOUTPUT" | grep -E '^[[:space:]]+[[:digit:]]' | tail -n 1 | get_first | tr -d '.\n')" + CDPARANOIAAUDIOTRACKS="$TRACKS" + + LEADOUT="$(echo "$CDPARANOIAOUTPUT" | grep -Eo '^TOTAL[[:space:]]+([[:digit:]]+)' | get_last)" +@@ -2178,7 +2178,7 @@ + if [ ! "$RET" = "0" ];then + log warning "something went wrong while querying the CD... Maybe a DATA CD?" + fi +- TRACKS="$(echo "$CDPARANOIAOUTPUT" | grep -E '^[[:space:]]+[[:digit:]]' | tail -n 1 | get_first | tr -d "." | tr '\n' ' ')" ++ TRACKS="$(echo "$CDPARANOIAOUTPUT" | grep -E '^[[:space:]]+[[:digit:]]' | tail -n 1 | get_first | tr -d '.\n')" + CDPARANOIAAUDIOTRACKS="$TRACKS" + else + # Previous versions of abcde would store the tracks on a file, instead of the status record. +@@ -5547,7 +5547,7 @@ + fi + # Check if we have moved all the formats we had previously encoded, if we are not using the FORCE. + if [ "$DOCLEAN" = "y" ] && [ ! "$FORCE" = "y" ]; then +- ENCODED_FORMATS=$(grep -E "^encodetrack-(.{3,6})-(.{1,2})$" "${ABCDETEMPDIR}/status" | cut -d"-" -f2 | sort -u | tr '\n' '|') ++ ENCODED_FORMATS=$(grep -E "^encodetrack-(.{3,6})-(.{1,3})$" "${ABCDETEMPDIR}/status" | cut -d"-" -f2 | sort -u | tr '\n' '|') + MOVED_FORMATS=$(grep -E "^movetrack-output-(.{3,6})$" "${ABCDETEMPDIR}/status" | cut -d"-" -f3 | sort -u | tr '\n' '|') + if [ "$ENCODED_FORMATS" != "$MOVED_FORMATS" ]; then + log warning "The encoded formats does not match with the moved ones" |