[debhelper-devel] [debhelper] 01/01: dh_makeshlibs: Avoid warning about missing d/<pkg> dir

Niels Thykier nthykier at moszumanska.debian.org
Sat Sep 16 10:17:21 UTC 2017


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

nthykier pushed a commit to branch master
in repository debhelper.

commit cf4b5f6f92be6859ae30f0352ed12f462f3e3269
Author: Niels Thykier <niels at thykier.net>
Date:   Sat Sep 16 10:15:35 2017 +0000

    dh_makeshlibs: Avoid warning about missing d/<pkg> dir
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 debian/changelog | 3 +++
 dh_makeshlibs    | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index ab30572..829ce6e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,9 @@ debhelper (10.9) UNRELEASED; urgency=medium
   * dh_shlibdeps: Ditto.
   * d/control: Bump Standards-Versions to 4.1.0.  No changes
     required.
+  * dh_makeshlibs: Avoid gratious warning about a non-existing
+    directory, when the packaging directory does not exist.
+    (Closes: #626685)
 
   [ Felipe Sateler ]
   * dh_systemd_enable: Refactor and add support for timer units.
diff --git a/dh_makeshlibs b/dh_makeshlibs
index 1ec7ba6..533c042 100755
--- a/dh_makeshlibs
+++ b/dh_makeshlibs
@@ -164,7 +164,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 	if (defined($dh{EXCLUDE_FIND}) && $dh{EXCLUDE_FIND} ne '') {
 		$exclude="! \\( $dh{EXCLUDE_FIND} \\) ";
 	}
-	open (FIND, "find $tmp -type f \\( -name '*.so' -or -name '*.so.*' \\) $exclude | LC_ALL=C sort |");
+	open (FIND, "test -d $tmp && find $tmp -type f \\( -name '*.so' -or -name '*.so.*' \\) $exclude | LC_ALL=C sort |");
 	while (<FIND>) {
 		my ($library, $major);
 		chomp;

-- 
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