From ed1c421361b5261a3f117e1bac0a1c2ef5e25985 Mon Sep 17 00:00:00 2001
From: Robin Sheat <robin@catalyst.net.nz>
Date: Fri, 24 Apr 2015 14:48:53 +1200
Subject: [PATCH] [PASSED QA] Bug 14055: remove symlink that breaks upgrades

Old versions of koha-common would put in a symlink to the system YUI
libraries. This causes upgrade problems, so we look out for that and zap
it if it's there.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
---
 debian/koha-common.preinst | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 debian/koha-common.preinst

diff --git a/debian/koha-common.preinst b/debian/koha-common.preinst
new file mode 100644
index 0000000..1f3b5e1
--- /dev/null
+++ b/debian/koha-common.preinst
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+set -e
+
+# Bug 14055 - remove the yui symlink if there's one in the way preventing upgrades
+[ -h /usr/share/koha/opac/htdocs/opac-tmpl/lib/yui ] && rm /usr/share/koha/opac/htdocs/opac-tmpl/lib/yui
-- 
2.3.6