Package: dgit Version: 9.2 Severity: normal Hi,
It would be nice to be able to dgit clone packages from the Ubuntu Cloud Archive (see https://wiki.ubuntu.com/OpenStack/CloudArchive ). I wrote the attached patch to do this. Thanks, Matthew -- The Wellcome Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is 215 Euston Road, London, NW1 2BE.
>From 89e3b9560184eb1483446adb1f9042243c9fd71c Mon Sep 17 00:00:00 2001 From: Matthew Vernon <[email protected]> Date: Wed, 17 Jul 2019 16:49:07 +0100 Subject: [PATCH] dgit clone: support ubuntu cloud archive This adds -d ubuntucloud for the Ubuntu Cloud Archive (see https://wiki.ubuntu.com/OpenStack/CloudArchive for details thereof). Access it using the aptget: query mechanism. This also requires slackening the suite_re, since the Codename for suites in the Ubuntu Cloud Archive are things like xenial-proposed/pike Signed-off-by: Matthew Vernon <[email protected]> --- Debian/Dgit.pm | 2 +- dgit | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm index 348f608c..1a217870 100644 --- a/Debian/Dgit.pm +++ b/Debian/Dgit.pm @@ -96,7 +96,7 @@ our @EXPORT_OK; our $package_re = '[0-9a-z][-+.0-9a-z]*'; our $component_re = '[0-9a-zA-Z][-+.0-9a-zA-Z]*'; -our $suite_re = '[-+.0-9a-z]+'; +our $suite_re = '[-+.0-9a-z/]+'; our $deliberately_re = "(?:TEST-)?$package_re"; our $distro_re = $component_re; our $versiontag_re = qr{[-+.\%_0-9a-zA-Z/]+}; diff --git a/dgit b/dgit index 0d7c62d7..f3adb6bc 100755 --- a/dgit +++ b/dgit @@ -783,6 +783,10 @@ our %defcfg = ('dgit.default.distro' => 'debian', 'dgit-distro.debian-backports.mirror' => 'http://backports.debian.org/debian-backports/', 'dgit-distro.ubuntu.git-check' => 'false', 'dgit-distro.ubuntu.mirror' => 'http://archive.ubuntu.com/ubuntu', + 'dgit-distro.ubuntucloud.git-check' => 'false', + 'dgit-distro.ubuntucloud.nominal-distro' => 'ubuntu', + 'dgit-distro.ubuntucloud.archive-query' => 'aptget:', + 'dgit-distro.ubuntucloud.mirror' => 'http://ubuntu-cloud.archive.canonical.com/ubuntu', 'dgit-distro.test-dummy.ssh' => "$td/ssh", 'dgit-distro.test-dummy.username' => "alice", 'dgit-distro.test-dummy.git-check' => "ssh-cmd", -- 2.17.1

