diff options
author | James McCoy <jamessan@debian.org> | 2019-01-08 01:07:17 -0500 |
---|---|---|
committer | James McCoy <jamessan@debian.org> | 2019-01-08 01:07:17 -0500 |
commit | c6dc958c0a66ab73cc63327fff78fc61cb389304 (patch) | |
tree | f450db9f955c38c30aecc1ec6d116ebb2263c038 | |
parent | 09c86441074491f497a66e4f76b95c86f7b63e5d (diff) |
Build helptags outside of the per-package loop
Signed-off-by: James McCoy <jamessan@debian.org>
-rwxr-xr-x | dh_vim-addon | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dh_vim-addon b/dh_vim-addon index f6e5f19..b1fcc34 100755 --- a/dh_vim-addon +++ b/dh_vim-addon @@ -172,6 +172,7 @@ my %pkgfiledir = ( my @packages = getpackages(); on_items_in_parallel(\@packages, sub { + my %tagdirs; foreach my $package (@_) { my $tmp = tmpdir($package); @@ -193,7 +194,6 @@ on_items_in_parallel(\@packages, sub { grep { ! -d $_->[0] } @paths; error("No directories found matching: @unknown\n") if @unknown; - my %tagdirs; my $dest = $pkgfiledir{$pkgfilebase}; foreach my $pair (@dirs) { my ($basedir, $addon_name) = @$pair; @@ -208,10 +208,6 @@ on_items_in_parallel(\@packages, sub { } } - if (scalar(%tagdirs)) { - doit('helpztags', sort keys %tagdirs); - } - if ($pkgfilebase =~ m/neovim/) { # First version with good "packages" support $substvar{neovim} = '0.2.2-1~'; @@ -228,4 +224,8 @@ on_items_in_parallel(\@packages, sub { addsubstvar($package, 'vim-addon:Depends', $depinfo); } } + + if (scalar(%tagdirs)) { + doit('helpztags', sort keys %tagdirs); + } }); |