summaryrefslogtreecommitdiffstats
path: root/debian/postinst.in
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 10:13:45 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 10:13:45 +0000
commit7fe5d9fe03501b2f907da85e964ce396568fe7ba (patch)
tree02073c155cdedf2550d2406c56663767165979e2 /debian/postinst.in
parentAdding derivative version file for Progress Linux 7.99 (graograman-backports). (diff)
downloadbase-files-7fe5d9fe03501b2f907da85e964ce396568fe7ba.tar.xz
base-files-7fe5d9fe03501b2f907da85e964ce396568fe7ba.zip
Adding dpkg origin file for Progress Linux.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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 2b31ff3..0ca10b6 100644
--- a/debian/postinst.in
+++ b/debian/postinst.in
@@ -52,6 +52,13 @@ update_to_current_default() {
fi
}
+# remove debian origin default symlink
+if [ -h "$DPKG_ROOT/etc/dpkg/origins/default" ]; then
+ if [ "`readlink "$DPKG_ROOT/etc/dpkg/origins/default"`" = "debian" ]; then
+ rm -f "$DPKG_ROOT/etc/dpkg/origins/default"
+ fi
+fi
+
if [ ! -e "$DPKG_ROOT/etc/dpkg/origins/default" ]; then
if [ -e "$DPKG_ROOT/etc/dpkg/origins/#VENDORFILE#" ]; then
ln -sf #VENDORFILE# "$DPKG_ROOT/etc/dpkg/origins/default"