plan_*: rename $path to $pkg_path for clarity

$path is a vague variable name.
This commit is contained in:
Adam Spiers 2024-03-04 00:53:51 +00:00
parent 457fa98527
commit f51fc1248c

View file

@ -271,8 +271,8 @@ sub plan_unstow {
$self->within_target_do(sub { $self->within_target_do(sub {
for my $package (@packages) { for my $package (@packages) {
my $path = join_paths($self->{stow_path}, $package); my $pkg_path = join_paths($self->{stow_path}, $package);
if (not -d $path) { if (not -d $pkg_path) {
error("The stow directory $self->{stow_path} does not contain package $package"); error("The stow directory $self->{stow_path} does not contain package $package");
} }
debug(2, 0, "Planning unstow of package $package..."); debug(2, 0, "Planning unstow of package $package...");
@ -314,8 +314,8 @@ sub plan_stow {
$self->within_target_do(sub { $self->within_target_do(sub {
for my $package (@packages) { for my $package (@packages) {
my $path = join_paths($self->{stow_path}, $package); my $pkg_path = join_paths($self->{stow_path}, $package);
if (not -d $path) { if (not -d $pkg_path) {
error("The stow directory $self->{stow_path} does not contain package $package"); error("The stow directory $self->{stow_path} does not contain package $package");
} }
debug(2, 0, "Planning stow of package $package..."); debug(2, 0, "Planning stow of package $package...");
@ -323,7 +323,7 @@ sub plan_stow {
$self->{stow_path}, $self->{stow_path},
$package, $package,
'.', '.',
$path, # source from target $pkg_path, # source from target
); );
debug(2, 0, "Planning stow of package $package... done"); debug(2, 0, "Planning stow of package $package... done");
$self->{action_count}++; $self->{action_count}++;