[debhelper-devel] [debhelper] 01/01: Dh_Getopt: Deprecate -s and remove it in compat 11

Niels Thykier nthykier at moszumanska.debian.org
Sun Jun 19 07:07:02 UTC 2016


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

nthykier pushed a commit to branch master
in repository debhelper.

commit 49656f59e5446c9707833bf81de351975cdedc3d
Author: Niels Thykier <niels at thykier.net>
Date:   Sun Jun 19 07:06:03 2016 +0000

    Dh_Getopt: Deprecate -s and remove it in compat 11
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 Debian/Debhelper/Dh_Getopt.pm | 7 +++++++
 debhelper.pod                 | 5 ++---
 debian/changelog              | 2 ++
 3 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/Debian/Debhelper/Dh_Getopt.pm b/Debian/Debhelper/Dh_Getopt.pm
index e597ddb..181a88d 100644
--- a/Debian/Debhelper/Dh_Getopt.pm
+++ b/Debian/Debhelper/Dh_Getopt.pm
@@ -33,6 +33,13 @@ sub AddPackage { my($option,$value)=@_;
 	       $option eq 's' or $option eq 'same-arch') {
 		push @{$dh{DOPACKAGES}}, getpackages('arch');
 		$dh{DOARCH}=1;
+		if ($option eq 's' or $option eq 'same-arch') {
+			if (compat(10)) {
+				warning('-s/--same-arch is deprecated; please use -a/--arch instead');
+			} else {
+				error('-s/--same-arch is removed in compat 11; please use -a/--arch instead');
+			}
+		}
 	}
 	elsif ($option eq 'p' or $option eq 'package') {
 		push @{$dh{DOPACKAGES}}, $value;
diff --git a/debhelper.pod b/debhelper.pod
index f16841d..9bfea31 100644
--- a/debhelper.pod
+++ b/debhelper.pod
@@ -4,7 +4,7 @@ debhelper - the debhelper tool suite
 
 =head1 SYNOPSIS
 
-B<dh_>I<*> [B<-v>] [B<-a>] [B<-i>] [B<-s>] [B<--no-act>] [B<-p>I<package>] [B<-N>I<package>] [B<-P>I<tmpdir>]
+B<dh_>I<*> [B<-v>] [B<-a>] [B<-i>] [B<--no-act>] [B<-p>I<package>] [B<-N>I<package>] [B<-P>I<tmpdir>]
 
 =head1 DESCRIPTION
 
@@ -124,8 +124,7 @@ times to make debhelper operate on a given set of packages.
 
 =item B<-s>, B<--same-arch>
 
-This used to be a smarter version of the B<-a> flag, but the B<-a> flag is now
-equally smart.
+Deprecated alias of B<-a>.
 
 =item B<-N>I<package>, B<--no-package=>I<package>
 
diff --git a/debian/changelog b/debian/changelog
index b287f72..02d212a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ debhelper (9.20160618.1+unreleased) UNRELEASED; urgency=medium
   * Start on compat 11.
   * dh_installmenu: Stop installing menu files in compat 11
     (menu-methods are still installed).
+  * dh_*: Deprecate -s in favor of -a.  The -s option is
+    removed in compat 11.
 
  -- Niels Thykier <niels at thykier.net>  Sat, 18 Jun 2016 21:10:26 +0000
 

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




More information about the debhelper-devel mailing list