[2/2] UBUNTU: linux-libc-dev -- ensure we can only build this on debian.master

Message ID 1284403529-6286-3-git-send-email-apw@canonical.com
State Accepted
Delegated to: Leann Ogasawara
Headers show

Commit Message

Andy Whitcroft Sept. 13, 2010, 6:45 p.m.
It is never right for linux-libc-dev to be build from other branches
than master.  Therefore prevent its generation from any other branch.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
 debian/rules.d/2-binary-arch.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index e4a4f3c..da93e4d 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -250,6 +250,10 @@  binary-arch-headers: install-arch-headers
 ifeq ($(do_libc_dev_package),true)
+ifneq ($(DEBIAN),debian.master)
+	echo "non-master branch building linux-libc-dev, aborting"
+	exit 1
 	dh_installchangelogs -plinux-libc-dev
 	dh_installdocs -plinux-libc-dev
 	dh_compress -plinux-libc-dev