Le 31/10/2018 à 08:40, Andreas Tille a écrit :
> Package: devscripts
> Version: 2.18.7
> Severity: normal
> 
> Hi,
> 
> you should be able to reproduce the issue via
> 
>   $ apt-get source libsmithwaterman
>   $ cd libsmithwaterman-0.0+git20160702.2610e25
>   $ uscan --verbose --force-download
> ...
> uscan die: uscan: invalid suffix, default given. [Devscripts::Uscan::Utils: 
> 140] at /usr/share/perl5/Devscripts/Uscan/Output.pm line 57.
> 
> 
> This command works when installing devscripts_2.18.6_amd64.deb from
> snapshots so it seems to be a regression.  (The issue happens for *all*
> packages using git mode I tried.)
> 
> 
> Kind regards
> 
>        Andreas.

Hello,

thanks for this report. Here is the fix (pushed in
https://salsa.debian.org/debian/devscripts/merge_requests/81):

diff --git a/lib/Devscripts/Uscan/Utils.pm b/lib/Devscripts/Uscan/Utils.pm
index 2b6ec219..e65c776b 100644
--- a/lib/Devscripts/Uscan/Utils.pm
+++ b/lib/Devscripts/Uscan/Utils.pm
@@ -136,6 +136,9 @@ sub get_suffix ($) {
     # Normalize compression methods to the names used by Dpkg::Compression
     if (exists $opt2suffix{$compression}) {
         $canonical_suffix = $opt2suffix{$compression};
+    } elsif ($compression eq 'default') {
+        require Devscripts::MkOrigtargz::Config;
+        return &Devscripts::MkOrigtargz::Config::default_compression;
     } else {
         uscan_die "$progname: invalid suffix, $compression given.";
     }

Reply via email to