#783917 dh-linktree: "replace" produces invalid result on symlinks in destination

#783917#5
Date:
2015-05-01 09:28:20 UTC
From:
To:
Action "replace" do not work as expected on symlinks in destination.
Instead of being replaced (like files), symlinks are silently ignored so
naturally I am getting broken symlinks in the package if symlinks exist in
source tree folders that I am trying to replace using dh_linktree.

May be it would be better to modify dh_linktree to replace symlinks from
destination and invoke dh_linktree before dh_link to avoid collisions with
manually installed symlinks?
---

Moral courage is the most valuable and usually the most absent
characteristic in men.
        -- George S. Patton---

#783917#10
Date:
2015-05-01 12:38:31 UTC
From:
To:
Replacing pre-existing symlinks is OK I guess. Changing the order in the
dh invocation is probably OK too.

Feel free to commit a fix for this. I don't have a strong interest in
dh_linktree and welcome any help.

Cheers,

#783917#15
Date:
2015-05-01 13:29:43 UTC
From:
To:
I'm more and more convinced that dh_linktree should be run before dh_link. I
even had to override dh_link in one package to make sure that everything is
working as expected... After all dh_link is happy to replace destination while
dh_linktree is not...

Thank you. I'll be happy to join as Uploader if that's OK with you.
--- Much of humankind's intellectual and emotional struggle has been not for truth, but against truth. The advance of science has been sporadically fought against for thousands of years. -- C. W. Dalton, "The Right Brain and Religion"
#783917#20
Date:
2015-05-01 18:14:01 UTC
From:
To:
Yes, sure!