diff options
author | James McCoy <jamessan@debian.org> | 2019-01-12 10:52:26 -0500 |
---|---|---|
committer | James McCoy <jamessan@debian.org> | 2019-01-12 11:13:39 -0500 |
commit | 4eda18d0ee8083a0e80aa758046acf47801e7076 (patch) | |
tree | 5b44652614b455f3c003418d8abf590913599cf0 | |
parent | 4b524beff75d03f7c2f1706c1e2366ff71b6edf9 (diff) |
Fix path for symlink target
Signed-off-by: James McCoy <jamessan@debian.org>
-rwxr-xr-x | dh_vim-addon | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/dh_vim-addon b/dh_vim-addon index 03f688e..9f8ca5e 100755 --- a/dh_vim-addon +++ b/dh_vim-addon @@ -184,14 +184,12 @@ on_items_in_parallel(\@packages, sub { next if $skip_process; my @paths; - # Make all paths relative to the package build directory - @paths = map { [ File::Spec->join($tmp, shift @$_), @$_ ] } - filedoublearray($pkgfile) if $pkgfile; + @paths = filedoublearray($pkgfile) if $pkgfile; # Verify all the specified directories can be found - my @dirs = grep { -d $_->[0] } @paths; + my @dirs = grep { -d File::Spec->join($tmp, $_->[0]) } @paths; my @unknown = map { $_->[0] } - grep { ! -d $_->[0] } @paths; + grep { ! -d File::Spec->join($tmp, $_->[0]) } @paths; error("No directories found matching: @unknown\n") if @unknown; my $dest = $pkgfiledir{$pkgfilebase}; |