diff mbox

deb-pkg md5sums

Message ID 4B913D28.5020109@joco.name (mailing list archive)
State New, archived
Headers show

Commit Message

FEJES Jozsef March 5, 2010, 5:19 p.m. UTC
None
diff mbox

Patch

diff -upr a/scripts/package/builddeb b/scripts/package/builddeb
--- a/scripts/package/builddeb	2010-02-09 13:57:19.000000000 +0100
+++ b/scripts/package/builddeb	2010-03-04 20:58:03.353788459 +0100
@@ -18,6 +18,8 @@  create_package() {
 	cp debian/copyright "$pdir/usr/share/doc/$pname/"
 	cp debian/changelog "$pdir/usr/share/doc/$pname/changelog.Debian"
 	gzip -9 "$pdir/usr/share/doc/$pname/changelog.Debian"
+	sh -c "cd '$pdir'; find . -type f ! -path './DEBIAN/*' -printf '%P\0' \
+		| xargs -r0 md5sum > DEBIAN/md5sums"
 
 	# Fix ownership and permissions
 	chown -R root:root "$pdir"