[ Felix Geyer ]

reverse-build-depends: Always display the correct default distribution name in
  the usage text.
This commit is contained in:
Michael Bienia 2010-05-02 18:35:32 +02:00
commit 9e23dfa60c
2 changed files with 8 additions and 3 deletions

6
debian/changelog vendored
View File

@ -5,7 +5,11 @@ ubuntu-dev-tools (0.100) UNRELEASED; urgency=low
* debian/ubuntu-dev-tools.preinst: * debian/ubuntu-dev-tools.preinst:
- It is no longer necessary to remove stale pycentral files. - It is no longer necessary to remove stale pycentral files.
-- Luca Falavigna <dktrkranz@ubuntu.com> Sat, 01 May 2010 14:48:37 +0200 [ Felix Geyer ]
* reverse-build-depends: Always display the correct default distribution
name in the usage text.
-- Michael Bienia <geser@ubuntu.com> Sun, 02 May 2010 18:33:59 +0200
ubuntu-dev-tools (0.99) lucid; urgency=low ubuntu-dev-tools (0.99) lucid; urgency=low

View File

@ -73,9 +73,10 @@ use Pod::Usage;
use Data::Dumper; use Data::Dumper;
my $progname = basename($0); my $progname = basename($0);
my $version = '1.0'; my $version = '1.0';
my $default_distribution = "maverick";
my $dctrl = "/usr/bin/grep-dctrl"; my $dctrl = "/usr/bin/grep-dctrl";
my $sources_path = "/var/lib/apt/lists/"; my $sources_path = "/var/lib/apt/lists/";
my $source_pattern = ".*_dists_maverick_.*Sources\$"; my $source_pattern = ".*_dists_${default_distribution}_.*Sources\$";
my @source_files; my @source_files;
my $sources_count=0; my $sources_count=0;
my $opt_debug; my $opt_debug;
@ -115,7 +116,7 @@ Options:
-d, --debug Enable the debug mode -d, --debug Enable the debug mode
-m, --print-maintainer Print the maintainer information (experimental) -m, --print-maintainer Print the maintainer information (experimental)
--distribution distribution Select a distribution to search for build-depends --distribution distribution Select a distribution to search for build-depends
(Default: karmic) (Default: $default_distribution)
--only-main Ignore universe and multiverse --only-main Ignore universe and multiverse
EOT EOT