diff options
author | Niels Thykier <niels@thykier.net> | 2018-03-07 20:39:47 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2018-03-07 20:40:00 +0000 |
commit | 0e8a8e4ef4980405ba66cd42fa0c67e8b366143c (patch) | |
tree | a5b2884110a9f295873cf2095e21959681668dad /dh | |
parent | b1ea7c883211e21878033cc21bf6d565a1ce19e7 (diff) | |
download | debhelper-0e8a8e4ef4980405ba66cd42fa0c67e8b366143c.tar.gz |
dh: Simplify sequence definitions
As of commit d68d6751a86052246433bf4381a5f8daac45f90d, the
SequencerUtil function "unpack_sequence" should correctly transform
the "compat 9"-style sequences into "compat 8"-style sequences.
Exploit this to avoid the duplicated definitions.
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh')
-rwxr-xr-x | dh | 26 |
1 files changed, 7 insertions, 19 deletions
@@ -452,25 +452,13 @@ $sequences{clean} = [@bd_minimal, qw{ }]; $sequences{'build-indep'} = [@bd]; $sequences{'build-arch'} = [@bd]; -if (! compat(8)) { - # From v9, sequences take standard rules targets into account. - $sequences{build} = [to_rules_target("build-arch"), to_rules_target("build-indep")]; - $sequences{'install-indep'} = [to_rules_target("build-indep"), @i]; - $sequences{'install-arch'} = [to_rules_target("build-arch"), @i]; - $sequences{'install'} = [to_rules_target("build"), to_rules_target("install-arch"), to_rules_target("install-indep")]; - $sequences{'binary-indep'} = [to_rules_target("install-indep"), @b]; - $sequences{'binary-arch'} = [to_rules_target("install-arch"), @ba, @b]; - $sequences{binary} = [to_rules_target("install"), to_rules_target("binary-arch"), to_rules_target("binary-indep")]; -} -else { - $sequences{build} = [@bd]; - $sequences{'install'} = [@{$sequences{build}}, @i]; - $sequences{'install-indep'} = [@{$sequences{'build-indep'}}, @i]; - $sequences{'install-arch'} = [@{$sequences{'build-arch'}}, @i]; - $sequences{binary} = [@{$sequences{install}}, @ba, @b]; - $sequences{'binary-indep'} = [@{$sequences{'install-indep'}}, @b]; - $sequences{'binary-arch'} = [@{$sequences{'install-arch'}}, @ba, @b]; -} +$sequences{build} = [to_rules_target("build-arch"), to_rules_target("build-indep")]; +$sequences{'install-indep'} = [to_rules_target("build-indep"), @i]; +$sequences{'install-arch'} = [to_rules_target("build-arch"), @i]; +$sequences{'install'} = [to_rules_target("build"), to_rules_target("install-arch"), to_rules_target("install-indep")]; +$sequences{'binary-indep'} = [to_rules_target("install-indep"), @b]; +$sequences{'binary-arch'} = [to_rules_target("install-arch"), @ba, @b]; +$sequences{binary} = [to_rules_target("install"), to_rules_target("binary-arch"), to_rules_target("binary-indep")]; # Additional command options my %command_opts; |