summaryrefslogtreecommitdiff
path: root/dh_link
diff options
context:
space:
mode:
Diffstat (limited to 'dh_link')
-rwxr-xr-xdh_link4
1 files changed, 2 insertions, 2 deletions
diff --git a/dh_link b/dh_link
index ab71c25c..6cb889cd 100755
--- a/dh_link
+++ b/dh_link
@@ -102,8 +102,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
error("parameters list a link without a destination.");
}
- # v4 only
- if (! compat(3)) {
+ # v4 only and only if there is a temp dir already
+ if (! compat(3) && -e $tmp) {
# Scan for existing links and add them to @links, so they
# are recreated policy conformant.
find(