Package: devscripts
Version: 2.19.5+deb10u1
Severity: wishlist
File: /usr/bin/dget

Dear Maintainer,

Dear Maintainer,

Please find attached patch that adds supports for downloading packages over the 
'scp' and 'sftp' protocols.
Patch has been tested on both protocols by downloading Debian package


'curl' installation on Debian 10 Linux comes with 'scp' and 'sftp' proptocols 
enabled by default.

Below is installed curl information:
$ curl -V
curl 7.64.0 (x86_64-pc-linux-gnu) libcurl/7.64.0 OpenSSL/1.1.1d zlib/1.2.11 
libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 li\
brtmp/2.3
Release-Date: 2019-02-06
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 
pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL 
libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL


-- System Information:
Debian Release: 10.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.3.0-46-generic (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



Thanks&Regards,

Muhammad Bilal
Mentor, A Siemens Business
muhammad_bi...@mentor.com
www.mentor.com
diff --git a/scripts/dget.pl b/scripts/dget.pl
index 06b98bf6..b876e909 100755
--- a/scripts/dget.pl
+++ b/scripts/dget.pl
@@ -481,7 +481,7 @@ for my $arg (@ARGV) {
 
     # case 1: URL
     if ($arg
-        =~ /^((?:copy|file|ftp|gopher|http|rsh|rsync|ssh|www).*)\/([^\/]+\.\w+)$/
+        =~ /^((?:copy|file|ftp|gopher|http|rsh|rsync|scp|sftp|ssh|www).*)\/([^\/]+\.\w+)$/
     ) {
         get_file($1, $2, "unlink") or exit 1;
         if ($found_dsc) {

Reply via email to