summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam Spiers <stow@adamspiers.org>2015-01-01 19:02:26 +0000
committerAdam Spiers <stow@adamspiers.org>2015-01-01 19:02:26 +0000
commit5be496a795eae8a139105d57fa98a9fcb172a122 (patch)
treeca41ec7f2749f6925b472af900137fafb48557d9 /lib
parent07a84541f189bf07c5861a975403df613a1e4bc1 (diff)
downloadstow-5be496a795eae8a139105d57fa98a9fcb172a122.tar.gz
improve debug
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Stow.pm.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Stow.pm.in b/lib/Stow.pm.in
index c7ee267..2e0b71e 100755
--- a/lib/Stow.pm.in
+++ b/lib/Stow.pm.in
@@ -406,7 +406,7 @@ sub stow_node {
my $path = join_paths($stow_path, $package, $target);
- debug(3, "Stowing $path");
+ debug(3, "Stowing $stow_path / $package / $target");
debug(4, " => $source");
# Don't try to stow absolute symlinks (they can't be unstowed)
@@ -1582,9 +1582,11 @@ sub is_a_link {
if (my $action = $self->link_task_action($path)) {
if ($action eq 'remove') {
+ debug(4, " is_a_link($path): returning 0 (remove action found)");
return 0;
}
elsif ($action eq 'create') {
+ debug(4, " is_a_link($path): returning 1 (create action found)");
return 1;
}
}
@@ -1596,7 +1598,7 @@ sub is_a_link {
return $self->parent_link_scheduled_for_removal($path) ? 0 : 1;
}
- debug(4, " is_a_link($path): returning false");
+ debug(4, " is_a_link($path): returning 0");
return 0;
}