summaryrefslogtreecommitdiffstats
path: root/debian/postinst.in
diff options
context:
space:
mode:
Diffstat (limited to 'debian/postinst.in')
-rw-r--r--debian/postinst.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/postinst.in b/debian/postinst.in
index 5167137..74d7c38 100644
--- a/debian/postinst.in
+++ b/debian/postinst.in
@@ -44,6 +44,13 @@ update_to_current_default() {
fi
}
+# remove debian origin default symlink
+if [ -h /etc/dpkg/origins/default ]; then
+ if [ "`readlink /etc/dpkg/origins/default`" = "debian" ]; then
+ rm -f /etc/dpkg/origins/default
+ fi
+fi
+
if [ ! -e /etc/dpkg/origins/default ]; then
if [ -e /etc/dpkg/origins/#VENDORFILE# ]; then
ln -sf #VENDORFILE# /etc/dpkg/origins/default