Package: podracer Version: 1.3-1 Severity: normal Tags: patch
It is quite easy to get blank lines at the end of a subscriptions file and the error message given by podracer in this situation is not good: curl: no URL specified! curl: try 'curl --help' or 'curl --manual' for more information It is also quite convenient to use blank lines to make the subscriptions file easier to read. Rather than address the problem the attached patch modifies the filtering of the configuration file to discard blank lines in addition to comments. -- System Information: Debian Release: testing/unstable Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15.1 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages podracer depends on: ii bittorrent 3.4.2-6 Scatter-gather network file transf ii curl 7.15.1-1 Get a file from an HTTP, HTTPS, FT ii python 2.3.5-5 An interactive high-level object-o ii screen 4.0.2-4.1 a terminal multiplexor with VT100/ ii timeout 1.11-6.2 Run a command with a time limit. podracer recommends no packages. -- no debconf information
--- /usr/bin/podracer 2005-09-16 00:13:00.000000000 +0100 +++ ./podracer 2006-01-20 13:22:43.000000000 +0000 @@ -129,7 +129,7 @@ trap 'echo Signal caught: exiting.;rm -f "$temppodcastlog";rm -f $tempsub;exit 3' hup int quit term # Read the subscription file and curl or catch up any url not already in the podcast log: -grep -v "^#" "$subscriptions" > "$tempsub" +egrep -v "(^#)|(^$)" "$subscriptions" > "$tempsub" while read podcast feeddir do test -z "$feeddir" -o -d "$poddir/$feeddir" || mkdir -p "$poddir/$feeddir"