[debhelper-devel] [debhelper] 18/28: dh_md5sums: create DEBIAN dir in ddebs before using it

Niels Thykier nthykier at moszumanska.debian.org
Sun Jun 28 12:57:20 UTC 2015


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

nthykier pushed a commit to branch master
in repository debhelper.

commit 344e77ce5963d1abdba6c729af8a3ab62e8d33e8
Author: Niels Thykier <niels at thykier.net>
Date:   Sat Jun 6 13:40:26 2015 +0200

    dh_md5sums: create DEBIAN dir in ddebs before using it
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 dh_md5sums | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dh_md5sums b/dh_md5sums
index 521fa66..e2bc724 100755
--- a/dh_md5sums
+++ b/dh_md5sums
@@ -87,6 +87,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 		doit("chown", "0:0", "$tmp/DEBIAN/md5sums");
 	}
 	if ( -d $ddeb_tmp) {
+		if (! -d "${ddeb_tmp}/DEBIAN") {
+			install_dir("${ddeb_tmp}/DEBIAN");
+		}
+
 		$find = "find . -type f ! -regex './DEBIAN/.*' -printf '%P\\0'";
 		complex_doit("(cd $ddeb_tmp >/dev/null ; $find | LC_ALL=C sort -z | xargs -r0 md5sum > DEBIAN/md5sums) >/dev/null");
 		# If the file's empty, no reason to waste inodes on it.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list