Package: devscripts
Version: 2.15.5
Severity: wishlist
Tags: patch

Launchpad now supports Git as well as Bazaar.  It would seem to make
sense to support this in "debcheckout -a"; I know it's configurable, but
debcheckout has explicit support for Bazaar on Launchpad, so explicitly
supporting Git on Launchpad as well doesn't seem too unreasonable.
Example package in Debian unstable: germinate.

(Declaration of interest: as well as being a Debian developer, I'm a
Launchpad developer and worked on Git support, so I have some interest
in making it convenient to use. :-) )

Thanks,

-- 
Colin Watson                                       [[email protected]]
>From ffb5d38beab3775405e400b9371e943b4a415cf6 Mon Sep 17 00:00:00 2001
From: Colin Watson <[email protected]>
Date: Sun, 14 Jun 2015 22:35:28 +0100
Subject: [PATCH] debcheckout: Handle Launchpad Git URLs

---
 scripts/debcheckout.pl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/debcheckout.pl b/scripts/debcheckout.pl
index 0cd20a3..1595d62 100755
--- a/scripts/debcheckout.pl
+++ b/scripts/debcheckout.pl
@@ -482,6 +482,7 @@ sub set_auth($$$$) {
 	    } else {
 		$url =~ s|^\w+://(git\.debian\.org)/(?:git/)?(.*)|git+ssh://$user$1/git/$2|;
 	    }
+	    $url =~ s[^\w+://(?:(git|code)\.)?(launchpad\.net/.*)][git+ssh://${user}git.$2];
 	}
 	# "hg ssh://" needs an extra slash so paths are not based in the user's $HOME
 	when ("hg") {
-- 
2.1.4

_______________________________________________
devscripts-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel

Reply via email to