xt-guess-suite-and-mirror: Add new option --sources-list to pass a file to parse
Primarily helpful for debugging and testing, but one might find other uses for it, too.
This commit is contained in:
@@ -9,8 +9,9 @@ mirror for DomUs on Debian and Ubuntu Dom0s.
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
--suite Show suite
|
||||
--mirror Show mirror
|
||||
--suite Show suite
|
||||
--mirror Show mirror
|
||||
--sources-list=<file> Parse this file as sources.list
|
||||
|
||||
Shows both if no parameter is given.
|
||||
|
||||
@@ -92,11 +93,13 @@ my $want_suite = 0;
|
||||
my $want_version = 0;
|
||||
my $want_help = 0;
|
||||
my $want_manual = 0;
|
||||
my $sources_list = undef;
|
||||
|
||||
my $result = GetOptions( 'mirror|m' => \$want_mirror,
|
||||
'suite|s' => \$want_suite,
|
||||
'version' => \$want_version,
|
||||
'manual' => \$want_manual,
|
||||
'sources-list=s' => \$sources_list,
|
||||
'help' => \$want_help );
|
||||
|
||||
if ($want_help) {
|
||||
@@ -107,6 +110,10 @@ if ($want_manual) {
|
||||
pod2usage( -verbose => 2 );
|
||||
}
|
||||
|
||||
if (defined $sources_list) {
|
||||
@sources_list_files = ($sources_list);
|
||||
}
|
||||
|
||||
all_sources_list_files: foreach my $sources_list_file (@sources_list_files) {
|
||||
if (-r $sources_list_file) {
|
||||
# sources.list file exists, so it's something debianoid.
|
||||
|
||||
4
debian/changelog
vendored
4
debian/changelog
vendored
@@ -3,7 +3,9 @@ xen-tools (4.9.2-1) UNRELEASED; urgency=medium
|
||||
* New upstream maintenance release
|
||||
+ Update list of Ubuntu and Debian releases.
|
||||
+ Fix bashism in release testing target "tidy".
|
||||
+ Bump default ubuntu fallback release to 22.04 Jammy LTS.
|
||||
+ xt-guess-suite-and-mirror:
|
||||
- Bump default ubuntu fallback release to 22.04 Jammy LTS.
|
||||
- Add new option --sources-list to pass a file to parse.
|
||||
* Update upstream signing key to update its expiry date.
|
||||
* Depend and Build-Depend on non-(build-)essential package
|
||||
mount. (Closes: #1027383)
|
||||
|
||||
Reference in New Issue
Block a user