stow_node: rename $second_source => $link_dest
The use of the word "source" to describe a link's destination is confusing in the context of Stow for reasons explained in the manual. So rename the $second_source variable to avoid this.
This commit is contained in:
parent
b5a467fd06
commit
b137191d27
1 changed files with 3 additions and 3 deletions
|
@ -500,12 +500,12 @@ sub stow_node {
|
||||||
|
|
||||||
# Don't try to stow absolute symlinks (they can't be unstowed)
|
# Don't try to stow absolute symlinks (they can't be unstowed)
|
||||||
if (-l $source) {
|
if (-l $source) {
|
||||||
my $second_source = $self->read_a_link($source);
|
my $link_dest = $self->read_a_link($source);
|
||||||
if ($second_source =~ m{\A/}) {
|
if ($link_dest =~ m{\A/}) {
|
||||||
$self->conflict(
|
$self->conflict(
|
||||||
'stow',
|
'stow',
|
||||||
$package,
|
$package,
|
||||||
"source is an absolute symlink $source => $second_source"
|
"source is an absolute symlink $source => $link_dest"
|
||||||
);
|
);
|
||||||
debug(3, 0, "Absolute symlinks cannot be unstowed");
|
debug(3, 0, "Absolute symlinks cannot be unstowed");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue