[Python-modules-commits] [sphinx] 01/01: Also mention whether the path was found in any built package or not.

Dmitry Shachnev mitya57 at moszumanska.debian.org
Thu Aug 11 18:15:09 UTC 2016


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

mitya57 pushed a commit to branch master
in repository sphinx.

commit ac67f1403f524e9ae31ff9e8d57a56f7834be90c
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Thu Aug 11 21:14:22 2016 +0300

    Also mention whether the path was found in any built package or not.
---
 debian/dh-sphinxdoc/dh_sphinxdoc | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/dh-sphinxdoc/dh_sphinxdoc b/debian/dh-sphinxdoc/dh_sphinxdoc
index 6798c06..1af3f45 100755
--- a/debian/dh-sphinxdoc/dh_sphinxdoc
+++ b/debian/dh-sphinxdoc/dh_sphinxdoc
@@ -378,6 +378,7 @@ my @paths = @ARGV;
 foreach my $path (@paths)
 {
     my $done = 0;
+    my @matching_packages;
     foreach my $package (@{$dh{DOPACKAGES}})
     {
         my $pkgpath = tmpdir($package);
@@ -385,6 +386,8 @@ foreach my $path (@paths)
         {
             next if -l $path;
             $pkgpath .= "/$path";
+            next unless -d $pkgpath;
+            push @matching_packages, $package;
             $done += fix_sphinx_doc($package, $pkgpath);
         }
         else
@@ -406,7 +409,11 @@ foreach my $path (@paths)
     {
         if (defined $path)
         {
-            error("Sphinx documentation not found at $path\n(searched in directories: @{$dh{DOPACKAGES}})");
+            if (!@matching_packages)
+            {
+                error("Path $path not found in any built package\n(searched in: @{$dh{DOPACKAGES}})");
+            }
+            error("Sphinx documentation not found at $path\n(path found in packages: @matching_packages)");
         }
         else
         {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sphinx.git



More information about the Python-modules-commits mailing list