Bug#819809: vim-runtime: We have to check whether /usr/share/vim/addons/doc exists, otherwise runtimes postinst fails.
Elimar Riesebieter
riesebie at lxtec.de
Sat Apr 2 14:47:37 UTC 2016
Package: vim-runtime
Version: 2:7.4.1692-1lxtec2
Severity: important
Tags: patch
Since we don't install matchit.txt we have to check whether
/usr/share/vim/addons/doc exists, otherwise runtimes postinst fails.
---
debian/vim-runtime.postinst | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/debian/vim-runtime.postinst b/debian/vim-runtime.postinst
index 34b221d..951e7ca 100644
--- a/debian/vim-runtime.postinst
+++ b/debian/vim-runtime.postinst
@@ -21,7 +21,9 @@ remove_previous_diversions() {
# Need to run helpztags since we're overwriting /u/s/v/a/d/tags whenever
# vim-runtime is install/upgraded which breaks the help for other vim addons
if which helpztags >/dev/null 2>&1; then
- helpztags /usr/share/vim/addons/doc
+ if [ -d /usr/share/vim/addons/doc ]; then
+ helpztags /usr/share/vim/addons/doc
+ fi
fi
if [ "$1" = "configure" ]; then
--
2.8.0.rc3
More information about the pkg-vim-maintainers
mailing list