[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[abcde] Bug#165368: abcde: Should not use relative links when PLAYLISTDATAPREFIX is set



Package: abcde
Version: 2.0.3-1
Severity: normal
Tags: patch

When using the PLAYLISTDATAPREFIX variable to prefix the playlist
entries with a string (e.g. http://you/yourstuff/) abcde should not
use relative links as this breaks with apache2.

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux ixchel 2.4.19 #1 SMP Wed Oct 16 20:06:42 BST 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages abcde depends on:
ii  cd-discid                     0.7-1      CDDB DiscID utility
ii  cdparanoia                    3a9.8-7    An audio extraction tool for sampl
ii  vorbis-tools                  1.0.0-1    Several Ogg Vorbis Tools
ii  wget                          1.8.2-5    retrieves files from the web

--- abcde.orig	2002-10-18 16:27:42.000000000 +0100
+++ abcde	2002-10-18 16:26:21.000000000 +0100
@@ -366,9 +366,10 @@
 			OUTPUTFILE=$(eval echo $OUTPUTFORMAT)
 		fi
 		if [ "$PLAYLISTDATAPREFIX" ]; then
-			echo -n $PLAYLISTDATAPREFIX >> "$OUTPUTDIR/$PLAYLISTFILE"
+			echo "$PLAYLISTDATAPREFIX$OUTPUTFILE" >> "$OUTPUTDIR/$PLAYLISTFILE"
+		else
+		    relpath "$PLAYLISTFILE", "$OUTPUTFILE" >> "$OUTPUTDIR/$PLAYLISTFILE"
 		fi
-		relpath "$PLAYLISTFILE", "$OUTPUTFILE" >> "$OUTPUTDIR/$PLAYLISTFILE"
 	done
 	echo "playlistcomplete" >> "$ABCDETEMPDIR/status"
 }


To unsubscribe: echo unsubscribe | mail abcde-request@whimsica.lly.org