Package: podracer
Severity: serious
Tags: upstream patch
Justification: Policy 3.5

podracer uses the awk function 'gensub' which does not exist in mawk but
fails without any error message.

The following patch should fix this incompatibility.

(please notice that it's 4am over here and test it better than i just did...)

greetings,
        Uli

--- podracer.orig       2005-09-16 04:09:41.000000000 +0200
+++ podracer    2005-09-16 04:10:35.000000000 +0200
@@ -149,7 +149,7 @@
                                realurl=`curl -s -I -L -w %{url_effective} 
--url "$url" | tail -n 1`

                                #we'll need filename to allow us to move the 
podcast into poddir[/feeddir]
-                               filename=`echo "$realurl" | awk -F / '{print 
gensub("%20", " ",  "g", gensub("%27", "\x27", "g", gensub("%23", "#", "g", 
$NF)))}'`
+                               filename=`echo "$realurl" | sed -e "s,.*/,," -e 
"s,%20, ,g" -e "s,%23,#,g" -e "s,%27,',g"`

                                #file is a torrent so use the internal torrent 
downloader
                                if [ "$(echo $filename | grep .torrent)" ]


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2-686
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to