From 84c5a72986a3a809be6ca1ddc21993f822ce1640 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Fri, 30 Dec 2016 14:40:34 +0100 Subject: [PATCH] Fix the issues with filenames for the md5sums Lintian reported missing md5sums for all files under usr/ and reported the existence of md5sums for all files under /usr that we're not in the package. --- packaging/linux/deb/buildpackage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/linux/deb/buildpackage.sh b/packaging/linux/deb/buildpackage.sh index 9d64bf3e61..e1481455e5 100755 --- a/packaging/linux/deb/buildpackage.sh +++ b/packaging/linux/deb/buildpackage.sh @@ -61,7 +61,7 @@ sed "s/{VERSION}/$VERSION/" DEBIAN/control | sed "s/{SIZE}/$PACKAGE_SIZE/" > "${ pushd "${DEB_BUILD_ROOT}" >/dev/null # Calculate md5sums and clean up the ./usr/ part of them -find . -type f -not -path "./DEBIAN/*" -print0 | xargs -0 -n1 md5sum | sed 's|\./usr/|/usr/|' > DEBIAN/md5sums +find . -type f -not -path "./DEBIAN/*" -print0 | xargs -0 -n1 md5sum | sed 's|\./usr/|usr/|' > DEBIAN/md5sums chmod 0644 DEBIAN/md5sums # Replace any dashes in the version string with periods