]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_link
r591: * dh_python typo fix Closes: #197679
[debhelper.git] / dh_link
diff --git a/dh_link b/dh_link
index ab71c25c025cb353a0d3aabdd14f790f919c2c0d..6cb889cdd79ea3b92132f2f9ee0ca79cdbc51cbb 100755 (executable)
--- 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(