Package: devscripts
Version: 2.20.2
Severity: normal
Tags: patch

Hi,

Running `uscan --download-version 8.8.3` fails for the following file:

version=3
opts="pgpsigurlmangle=s/$/.sig/,dirversionmangle=s/-rc/~rc/,repacksuffix=+dfsg1,dversionmangle=s/\+dfsg\d*$//"
 \
https://downloads.haskell.org/~ghc/(\d[\d.rc-]*)/ghc-(\d[\d.]*)-src.tar.(?:bz2|xz|gz)

Using `--debug` I see that `uscan debug: received content:` output is
compressed, so I assume uscan cannot handle gzip-compressed content.

Attached is a patch that fixes the above behavior for me.

Thanks for maintaining uscan!

-- 
Ilias
diff --git a/lib/Devscripts/Uscan/http.pm b/lib/Devscripts/Uscan/http.pm
index 20273f94..7d0d8627 100644
--- a/lib/Devscripts/Uscan/http.pm
+++ b/lib/Devscripts/Uscan/http.pm
@@ -222,7 +222,7 @@ sub http_newdir {
         return '';
     }
 
-    my $content = $response->content;
+    my $content = $response->decoded_content;
     uscan_debug
       "received content:\n$content\n[End of received content] by HTTP";
 

Reply via email to