Bug#880649: devscripts: [dch] Pleas support downloading packages over gopher://

Chris Lamb lamby at debian.org
Fri Nov 3 09:40:11 UTC 2017


Source: devscripts
Version: 2.17.11
Severity: wishlist 
Tags: patch

Hi,

Patch attached that adds support for downloading packages over
the Gopher protocol.


Best wishes,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
diff --git a/scripts/dget.pl b/scripts/dget.pl
index f478240..4d97473 100755
--- a/scripts/dget.pl
+++ b/scripts/dget.pl
@@ -457,7 +457,7 @@ for my $arg (@ARGV) {
     $found_dsc = "";
 
     # case 1: URL
-    if ($arg =~ /^((?:copy|file|ftp|http|rsh|rsync|ssh|www).*)\/([^\/]+\.\w+)$/) {
+    if ($arg =~ /^((?:copy|file|ftp|gopher|http|rsh|rsync|ssh|www).*)\/([^\/]+\.\w+)$/) {
 	get_file($1, $2, "unlink") or exit 1;
 	if ($found_dsc) {
 	    if ($dget_verify) { # We are duplicating work here a bit as


More information about the devscripts-devel mailing list