Package: devscripts Version: 2.10.10 Severity: wishlist Tags: patch The attached patch adds authenticated checkout support for bazaar.launchpad.net and code.launchpad.net. (Note that I used different regex delimiters due to using | in the regex.)
Thanks, -- Colin Watson [EMAIL PROTECTED]
Index: scripts/debcheckout.pl =================================================================== --- scripts/debcheckout.pl (revision 840) +++ scripts/debcheckout.pl (working copy) @@ -153,7 +153,8 @@ my $old_url = $url; $user .= "@" if length $user; switch ($repo_type) { - case "bzr" { $url =~ s|^\w+://(bzr\.debian\.org)/(.*)|sftp://$user$1/bzr/$2|; } + case "bzr" { $url =~ s|^\w+://(bzr\.debian\.org)/(.*)|sftp://$user$1/bzr/$2|; + $url =~ s[^\w+://(?:bazaar|code)(\.launchpad\.net/.*)][bzr+ssh://${user}bazaar$1]; } case "git" { $url =~ s|^\w+://(git\.debian\.org/.*)|git+ssh://$user$1|; } case "hg" { $url =~ s|^\w+://(hg\.debian\.org/.*)|ssh://$user$1|; } case "svn" { $url =~ s|^\w+://(svn\.debian\.org)/(.*)|svn+ssh://$user$1/svn/$2|; }