This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=b4dd7c402fe72b95f9d93ebe1a4cd9e6ead204cc

commit b4dd7c402fe72b95f9d93ebe1a4cd9e6ead204cc
Author: Guillem Jover <[email protected]>
AuthorDate: Sat Apr 9 14:37:12 2022 +0200

    debian: Silence warning about merged-usr-via-aliased-dirs on Ubuntu
    
    On Ubuntu they are not installing the dpkg-fsys-usrunmess script, so
    it seems clear they are not interested in this warning, silence it.
---
 debian/dpkg.postinst | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/debian/dpkg.postinst b/debian/dpkg.postinst
index 83a487319..d17a9aa03 100644
--- a/debian/dpkg.postinst
+++ b/debian/dpkg.postinst
@@ -27,11 +27,17 @@ check_merged_usr_via_aliased_dirs()
 
   vendor=$(get_vendor)
 
-  # In Debian some people have gotten so offended by the following _warning_
-  # that they have resorted to bullying and abuse. Life's too short, sorry.
-  if [ "$vendor" = "debian" ]; then
+  case "$vendor" in
+  debian)
+    # In Debian some people have gotten so offended by the following _warning_
+    # that they have resorted to bullying and abuse. Life's too short, sorry.
     return
-  fi
+    ;;
+  ubuntu)
+    # Ubuntu does not seem interested in it.
+    return
+    ;;
+  esac
 
   for d in /bin /sbin /lib /lib32 /libo32 /libx32 /lib64; do
     linkname="$(readlink $DPKG_ROOT$d || true)"

-- 
Dpkg.Org's dpkg

Reply via email to