diff options
author | Guillem Jover <guillem@debian.org> | 2016-05-01 16:06:31 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2016-05-02 04:03:19 +0200 |
commit | 9c9fc468fe445bf7a531c89135bc06d66ced58dc (patch) | |
tree | 22d684a19ccf301e4ab34ec83d28354165be7f68 /scripts/Dpkg/Build/Types.pm | |
parent | e0c33c729c395dd8592c91723065d723246dab31 (diff) | |
download | dpkg-9c9fc468fe445bf7a531c89135bc06d66ced58dc.tar.gz |
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.
Diffstat (limited to 'scripts/Dpkg/Build/Types.pm')
-rw-r--r-- | scripts/Dpkg/Build/Types.pm | 20 |
1 files changed, 2 insertions, 18 deletions
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; |