From: Mikel Ward Date: Wed, 1 Jun 2022 14:18:57 +0000 (+0100) Subject: Add a leading slash to Debian conffiles paths X-Git-Tag: 1.13~21^2~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;ds=sidebyside;h=3040ed44345cce3c3cad83b61a49dcfd88430bd5;p=deb_pkgs%2Fautorandr.git Add a leading slash to Debian conffiles paths Avoids an error dpkg-deb: error: conffile name 'etc/xdg/autostart/autorandr.desktop' is not an absolute pathname --- diff --git a/contrib/packaging/debian/make_deb.sh b/contrib/packaging/debian/make_deb.sh index fe8fe37..32d1b7b 100755 --- a/contrib/packaging/debian/make_deb.sh +++ b/contrib/packaging/debian/make_deb.sh @@ -45,7 +45,7 @@ SIZE=$(du -s $D | awk '{print $1}') cp -r "$P/debian" "$D/DEBIAN" chmod 0755 "$D/DEBIAN" -[ -d "$D/etc" ] && (cd $D; find etc -type f) > "$D/DEBIAN/conffiles" +[ -d "$D/etc" ] && (cd $D; find etc -type f -printf '/%p\n') > "$D/DEBIAN/conffiles" sed -i -re "s#Version:.+#Version: $V#" "$D/DEBIAN/control" echo "Installed-Size: $SIZE" >> "$D/DEBIAN/control" fakeroot dpkg-deb -b "$D" "$O"