diff options
author | Helmut Grohne <helmut@subdivi.de> | 2014-08-18 08:20:53 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-08-19 09:58:54 +0200 |
commit | 7fe9dcdd57c083180a7994957d1e5217d28e970a (patch) | |
tree | 303f88d59fb3b943745ed2a6f75ffe1712e99ac7 /man | |
parent | 78623bf34188a2f0f97b51da829abcee199b3f67 (diff) | |
download | dpkg-7fe9dcdd57c083180a7994957d1e5217d28e970a.tar.gz |
dpkg-maintscript-helper: Fix dir_to_symlink to handle relative symlink targets
When invoking dir_to_symlink, dpkg-maintscript-helper was assuming the
target to be absolute, but Debian policy 10.5 requires relative symlinks
in a few places. So it now works with relative targets.
Signed-off-by: Helmut Grohne <helmut@subdivi.de>
Signed-off-by: Guillem Jover <guillem@debian.org>
Diffstat (limited to 'man')
-rw-r--r-- | man/dpkg-maintscript-helper.1 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/man/dpkg-maintscript-helper.1 b/man/dpkg-maintscript-helper.1 index e31ae8b25..f8952e702 100644 --- a/man/dpkg-maintscript-helper.1 +++ b/man/dpkg-maintscript-helper.1 @@ -197,9 +197,10 @@ scripts: dpkg\-maintscript\-helper dir_to_symlink \\ \fIpathname\fP \fInew-target\fP \fIprior-version\fP \fIpackage\fP \-\- "$@" .P -\fIpathname\fP is the name of the old directory (the path will be a -symlink at the end of the installation) and \fInew-target\fP is the target -of the new symlink at \fIpathname\fP. +\fIpathname\fP is the absolute name of the old directory (the path +will be a symlink at the end of the installation) and \fInew-target\fP is +the target of the new symlink at \fIpathname\fP. It can either be absolute +or relative to the directory containing \fIpathname\fP. .P Current implementation: the \fBpreinst\fP checks if the directory exists, does not contain conffiles, pathnames owned by other packages, |