Package: abcde
Version: 2.3.99.2-1
Severity: wishlist
Tags: patch

If I have my WAVOUTPUTDIR set to eg. /tmp/rip, then this is deleted
when cleaning /tmp, but abcde needs it to exist to create its own
subdirectory /tmp/rip/abcde.<discid>.  It would be useful if abcde were
to create any required parent directories, using mkdir -p, rather than
complaining that the temporary directory canot be created.

Trivial patch attached.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'proposed-updates'), 
(500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13.1
Locale: LANG=en_GB.ISO8859-15, LC_CTYPE=en_GB.ISO8859-15 (charmap=ISO-8859-15)

Versions of packages abcde depends on:
ii  cd-discid                 0.9-1          CDDB DiscID utility
ii  cdda2wav                  4:2.01+01a03-4 Creates WAV files from audio CDs
ii  cdparanoia                3a9.8-11       An audio extraction tool for sampl
ii  flac                      1.1.2-3+b1     Free Lossless Audio Codec - comman
ii  vorbis-tools              1.1.1-1        several Ogg Vorbis tools
ii  wget                      1.10.2-1       retrieves files from the web

abcde recommends no packages.

-- no debconf information
--- /usr/bin/abcde      2005-12-12 22:07:20.000000000 +0000
+++ bin/abcde   2006-01-02 11:15:20.000000000 +0000
@@ -1476,7 +1476,7 @@
                                exit 1
                        fi
                        rm -rf "$ABCDETEMPDIR" || exit 1
-                       mkdir "$ABCDETEMPDIR"
+                       mkdir -p "$ABCDETEMPDIR"
                        if [ "$?" -gt "0" ]; then
                                # Directory already exists or could not be 
created
                                echo "abcde: Temp directory $ABCDETEMPDIR could 
not be created." >&2
@@ -1498,7 +1498,7 @@
                fi
        else
                # We are starting from scratch
-               mkdir "$ABCDETEMPDIR"
+               mkdir -p "$ABCDETEMPDIR"
                if [ "$?" -gt "0" ]; then
                        # Directory already exists or could not be created
                        echo "abcde: Temp directory $ABCDETEMPDIR could not be 
created." >&2

Reply via email to