Rework translation only logic

Ignore translation only import only for testing, not for publishing.

Change-Id: If9b3d68ebdc18d5c5d6f2bb63ec339c0da2396da
This commit is contained in:
Andreas Jaeger 2014-09-08 08:33:51 +02:00
parent 29924459fa
commit e463cf2f11
1 changed files with 4 additions and 1 deletions

View File

@ -1470,7 +1470,10 @@ def doctest():
print("Only files in www directory changed, nothing to do.\n")
return
if not CONF.force and not CONF.language and only_po_touched():
# Build everything if we publish so that regularly all manuals are
# published, for testing ignore the locale directories.
if (not CONF.force and not CONF.publish and not CONF.language
and only_po_touched()):
print("Only files in locale directories changed, nothing to do.\n")
return