[Python-modules-commits] r17742 - in packages/sphinx/trunk/debian (dh_sphinxdoc)
jwilk at users.alioth.debian.org
jwilk at users.alioth.debian.org
Thu Jul 7 16:51:28 UTC 2011
Date: Thursday, July 7, 2011 @ 16:51:27
Author: jwilk
Revision: 17742
dh_sphinxdoc: allow to override .doctrees removal code with -X.
Modified:
packages/sphinx/trunk/debian/dh_sphinxdoc
Modified: packages/sphinx/trunk/debian/dh_sphinxdoc
===================================================================
--- packages/sphinx/trunk/debian/dh_sphinxdoc 2011-07-07 16:39:45 UTC (rev 17741)
+++ packages/sphinx/trunk/debian/dh_sphinxdoc 2011-07-07 16:51:27 UTC (rev 17742)
@@ -82,6 +82,7 @@
sub drop_doctrees($)
{
my ($path) = @_;
+ return if excludefile('.doctrees');
my $doctrees = "$path/.doctrees/";
doit('rm', '-rf', $doctrees) if -d $doctrees;
}
@@ -97,11 +98,11 @@
return 1;
}
+init();
+
my @paths = @ARGV;
@paths = (undef) unless @paths;
-init();
-
foreach my $path (@paths)
{
my $done = 0;
More information about the Python-modules-commits
mailing list