[Pkg-asv-commits] r23 - in trunk: . debian

ahoenen-guest at alioth.debian.org ahoenen-guest at alioth.debian.org
Thu Mar 6 20:42:03 UTC 2008


Author: ahoenen-guest
Date: 2008-03-06 20:42:02 +0000 (Thu, 06 Mar 2008)
New Revision: 23

Modified:
   trunk/apt-show-versions
   trunk/debian/changelog
   trunk/debian/control
Log:
- Add --regex-all variation of option --regex: also show matching packages
  which are not installed.
  (Closes: #460272)
- Actualize my mail address in debian/control.


Modified: trunk/apt-show-versions
===================================================================
--- trunk/apt-show-versions	2008-02-19 20:11:38 UTC (rev 22)
+++ trunk/apt-show-versions	2008-03-06 20:42:02 UTC (rev 23)
@@ -43,6 +43,8 @@
 use AptPkg::System '$_system';
 use AptPkg::Version;
 
+Getopt::Long::Configure('no_ignore_case');  # Distinguish options -R and -r.
+
 $_config->init;
 $_config->{quiet} = 2;  # Suppress cache building messages.
 $_system = $_config->system;
@@ -73,6 +75,7 @@
         'list-dir|ld=s',
         'package|p=s',
         'regex|r',
+        'regex-all|R',
         'allversions|a',
         'upgradeable|u',
         'brief|b',
@@ -94,6 +97,9 @@
     $pkg_names{$_} = 1 foreach (@ARGV);
 }
 
+# Consider implicit option dependencies.
+$opts{'regex'} = 1 if ($opts{'regex-all'});
+
 # Determine call mode.
 my $MODE_SINGLE   = 1;  # Called with one package name.
 my $MODE_MULTIPLE = 2;  # Called with several packages names.
@@ -127,6 +133,7 @@
                             of /var/state/apt/lists/ or /var/lib/apt/lists/
  -p|--package=<package>     Print versions for <package>.
  -r|--regex                 Read package with -p as regex
+ -R|--regex-all             Like --regex, but also show not installed packages.
  -u|--upgradeable           Print only upgradeable packages
  -a|--allversions           Print all available versions.
  -b|--brief                 Short output.
@@ -266,7 +273,8 @@
 }
 else {
     # print info for all packages or packages matching regex
-    foreach my $key (sort keys %$ipackages) {
+    my $pkgs = ($opts{'regex-all'}) ? $apackages : $ipackages;
+    foreach my $key (sort keys %$pkgs) {
         next if (exists $opts{'package'} &&
                  exists $opts{'regex'} &&
                  !($key =~ m/$opts{'package'}/));
@@ -739,6 +747,10 @@
 
 interpret I<package> from option B<-p> as a regex.
 
+=item B<-R>, B<--regex-all>
+
+like B<--regex>, but also show matching packages which are not installed
+
 =item B<-u>, B<--upgradeable>
 
 Print only upgradeable packages

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2008-02-19 20:11:38 UTC (rev 22)
+++ trunk/debian/changelog	2008-03-06 20:42:02 UTC (rev 23)
@@ -18,11 +18,15 @@
   * Correct combination of upgradeable and allversions options: If a package is
     not upgradeable, without regard of allversions option nothing gets printed
     for it.
+  * Add --regex-all variation of option --regex: also show matching packages
+    which are not installed.
+    (Closes: #460272)
   * Actualize french manual page.  Thanks, Jean-Baka Domelevo Entfellner.
     (Closes: #460631)
   * Actualize FSF address in a-s-v script.
+  * Actualize my mail address in debian/control.
 
- -- Andreas Hoenen <andreas.hoenen at arcor.de>  Tue, 19 Feb 2008 21:09:17 +0100
+ -- Andreas Hoenen <andreas at hoenen-terstappen.de>  Wed, 05 Mar 2008 22:27:54 +0100
 
 apt-show-versions (0.12) unstable; urgency=low
 

Modified: trunk/debian/control
===================================================================
--- trunk/debian/control	2008-02-19 20:11:38 UTC (rev 22)
+++ trunk/debian/control	2008-03-06 20:42:02 UTC (rev 23)
@@ -2,7 +2,7 @@
 Section: admin
 Priority: optional
 Maintainer: Christoph Martin <christoph.martin at uni-mainz.de>
-Uploaders: Andreas Hoenen <andreas.hoenen at arcor.de>
+Uploaders: Andreas Hoenen <andreas at hoenen-terstappen.de>
 Build-Depends: debhelper (>= 5)
 Build-Depends-Indep: po4a
 Standards-Version: 3.7.3




More information about the Pkg-asv-commits mailing list