From 9c9fc468fe445bf7a531c89135bc06d66ced58dc Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sun, 1 May 2016 16:06:31 +0200 Subject: Dpkg::Build::Types: Remove BUILD_SOURCE composite constants These are very specialized and not used often, let's compose them from basic types when needed. --- scripts/Dpkg/Build/Types.pm | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'scripts/Dpkg/Build/Types.pm') diff --git a/scripts/Dpkg/Build/Types.pm b/scripts/Dpkg/Build/Types.pm index 2dda43780..cbefefd49 100644 --- a/scripts/Dpkg/Build/Types.pm +++ b/scripts/Dpkg/Build/Types.pm @@ -26,8 +26,6 @@ our @EXPORT = qw( BUILD_ARCH_DEP BUILD_ARCH_INDEP BUILD_BINARY - BUILD_SOURCE_DEP - BUILD_SOURCE_INDEP BUILD_FULL build_has build_has_not @@ -78,14 +76,6 @@ This build includes architecture independent binary artifacts. This build includes binary artifacts. -=item BUILD_SOURCE_DEP - -This build includes source and architecture dependent binary artifacts. - -=item BUILD_SOURCE_INDEP - -This build includes source and architecture independent binary artifacts. - =item BUILD_FULL This build includes source and binary artifacts. @@ -101,14 +91,8 @@ use constant { }; # Composed types. -use constant { - BUILD_BINARY => BUILD_ARCH_DEP | BUILD_ARCH_INDEP, - BUILD_SOURCE_DEP => BUILD_SOURCE | BUILD_ARCH_DEP, - BUILD_SOURCE_INDEP => BUILD_SOURCE | BUILD_ARCH_INDEP, -}; -use constant { - BUILD_FULL => BUILD_BINARY | BUILD_SOURCE, -}; +use constant BUILD_BINARY => BUILD_ARCH_DEP | BUILD_ARCH_INDEP; +use constant BUILD_FULL => BUILD_BINARY | BUILD_SOURCE; my $current_type = BUILD_FULL | BUILD_DEFAULT; my $current_option = undef; -- cgit v1.2.3