Hi Guillem

Does this will solve this bug ?

diff --git a/src/dpkg-maintscript-helper.sh b/src/dpkg-maintscript-helper.sh
index a7b914a2c..33921c53c 100755
--- a/src/dpkg-maintscript-helper.sh
+++ b/src/dpkg-maintscript-helper.sh
@@ -526,11 +526,22 @@ validate_optional_version() {
   fi
 }
 
+
+# dpkg -L all/any
+dpkg_L_all_arch() {
+  local PKG="$1"
+  dpkg-query -W -f='${Package}:${Architecture}\n' | grep "^${PKG}:" | \
+  while read p; do
+    dpkg-query -L "$p" 2>/dev/null
+  done
+}
+
 ensure_package_owns_file() {
   local PACKAGE="$1"
   local FILE="$2"
+  local ARCH=$(dpkg --print-architecture)
 
-  if ! dpkg-query -L "$PACKAGE" | grep -F -q -x "$FILE"; then
+  if ! dpkg_L_all_arch "$PACKAGE" | grep -F -q -x "$FILE"; then
     debug "File '$FILE' not owned by package " \
           "'$PACKAGE', skipping $command"
     return 1

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to