[devscripts] 01/02: chdist: add support for running aptitude

Paul Wise pabs at moszumanska.debian.org
Mon Apr 3 11:49:40 UTC 2017


This is an automated email from the git hooks/post-receive script.

pabs pushed a commit to branch master
in repository devscripts.

commit f722bf624a693c7ce59b642627964b78669781ce
Author: Paul Wise <pabs at debian.org>
Date:   Mon Apr 3 13:13:03 2017 +0800

    chdist: add support for running aptitude
---
 debian/changelog               | 4 ++++
 scripts/chdist.bash_completion | 4 ++--
 scripts/chdist.pl              | 7 +++++++
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 3555a9c..98de8ed 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,10 @@ devscripts (2.17.6) UNRELEASED; urgency=medium
   * uscan: fix a typo in the manpage
   * debdiff: fix a typo
 
+  [ Paul Wise ]
+  * chdist:
+    + add support for running aptitude
+
  -- Osamu Aoki <osamu at debian.org>  Fri, 31 Mar 2017 02:03:30 +0900
 
 devscripts (2.17.5) unstable; urgency=medium
diff --git a/scripts/chdist.bash_completion b/scripts/chdist.bash_completion
index 8977331..0811a01 100644
--- a/scripts/chdist.bash_completion
+++ b/scripts/chdist.bash_completion
@@ -6,7 +6,7 @@ _chdist ()
 {
   local cur=$2 prev=$3
   local options='--help -h --data-dir -d --arch -a'
-  local commands='create apt apt-get apt-cache apt-rdepends
+  local commands='create apt apt-get apt-cache apt-rdepends aptitude
            src2bin bin2src
        compare-packages compare-bin-packages
        compare-versions compare-bin-versions
@@ -31,7 +31,7 @@ _chdist ()
     -@(-help|h)|list)
         return 0
     ;;
-    create|apt|apt-get|apt-cache|apt-rdepends|src2bin|bin2src|compare-packages|compare-bin-packages|compare-versions|compare-bin-versions|grep-dctrl-packages|grep-dctrl-sources)
+    create|apt|apt-get|apt-cache|apt-rdepends|aptitude|src2bin|bin2src|compare-packages|compare-bin-packages|compare-versions|compare-bin-versions|grep-dctrl-packages|grep-dctrl-sources)
         COMPREPLY=( $( compgen -W "$dists" -- $cur ) )
     return 0
   esac
diff --git a/scripts/chdist.pl b/scripts/chdist.pl
index f05126c..51a161b 100755
--- a/scripts/chdist.pl
+++ b/scripts/chdist.pl
@@ -80,6 +80,10 @@ Run B<apt-file> inside I<DIST>
 
 Run B<apt-rdepends> inside I<DIST>
 
+=item B<aptitude> I<DIST> [...]
+
+Run B<aptitude> inside I<DIST>
+
 =item B<src2bin> I<DIST SRCPKG>
 
 List binary packages for I<SRCPKG> in I<DIST>
@@ -725,6 +729,9 @@ given ($command) {
     when ('apt-rdepends') {
 	aptcmd('apt-rdepends', @ARGV);
     }
+    when ('aptitude') {
+	aptcmd('aptitude', @ARGV);
+    }
     when ('bin2src') {
 	bin2src(@ARGV);
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list