[Python-modules-commits] r17755 - in packages/sphinx/trunk/debian (dh_sphinxdoc)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Fri Jul 8 20:39:38 UTC 2011


    Date: Friday, July 8, 2011 @ 20:39:36
  Author: jwilk
Revision: 17755

dh_sphinxdoc: check if /usr/share/doc/ exists before trying to explore it.

Modified:
  packages/sphinx/trunk/debian/dh_sphinxdoc

Modified: packages/sphinx/trunk/debian/dh_sphinxdoc
===================================================================
--- packages/sphinx/trunk/debian/dh_sphinxdoc	2011-07-08 20:37:24 UTC (rev 17754)
+++ packages/sphinx/trunk/debian/dh_sphinxdoc	2011-07-08 20:39:36 UTC (rev 17755)
@@ -199,6 +199,8 @@
         }
         else
         {
+            $pkgpath .= '/usr/share/doc/';
+            next unless -d $pkgpath;
             find({
                 wanted => sub {
                     return unless -d;
@@ -207,7 +209,7 @@
                     $done += fix_sphinx_doc($package, $_);
                 },
                 no_chdir => 1
-            }, "$pkgpath/usr/share/doc/");
+            }, $pkgpath);
         }
     }
     if ($done == 0)




More information about the Python-modules-commits mailing list