Possible fix for FontTriplet errors during heavy load

Testing a theory about bad fop cache directory

Fixes LP# 1221721

Change-Id: Ic355f0d34b817ba52eb96b04b1ec0d2d1e7fe953
This commit is contained in:
Davanum Srinivas 2013-09-19 22:17:17 -04:00
parent 99b93dc27e
commit 9fa0bd8fd7
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import argparse
import multiprocessing
import os
import re
import shutil
import subprocess
import sys
import urllib2
@ -294,6 +295,8 @@ def build_book(rootdir, book):
result = True
returncode = 0
try:
shutil.rmtree(os.path.expanduser("~/.fop"),
ignore_errors=True)
output = subprocess.check_output(
["mvn", "clean", "generate-sources"],
stderr=subprocess.STDOUT