mirror of https://github.com/tLDP/python-tldp
skip adding to removals if in --script mode
This commit is contained in:
parent
71fcbb8925
commit
d59850d433
|
@ -85,7 +85,8 @@ class Docbook4XML(BaseDoctype, SignatureChecker):
|
|||
s = '''"{config.docbook4xml_xsltproc}" > "{output.name_fo}" \\
|
||||
"{config.docbook4xml_xslprint}" \\
|
||||
"{output.validsource}"'''
|
||||
self.removals.add(self.output.name_fo)
|
||||
if not self.config.script:
|
||||
self.removals.add(self.output.name_fo)
|
||||
return self.shellscript(s, **kwargs)
|
||||
|
||||
# -- this is conditionally built--see logic in make_name_pdf() below
|
||||
|
|
|
@ -104,7 +104,8 @@ class Docbook5XML(BaseDoctype, SignatureChecker):
|
|||
s = '''"{config.docbook5xml_xsltproc}" > "{output.name_fo}" \\
|
||||
"{config.docbook5xml_xslprint}" \\
|
||||
"{output.validsource}"'''
|
||||
self.removals.add(self.output.name_fo)
|
||||
if not self.config.script:
|
||||
self.removals.add(self.output.name_fo)
|
||||
return self.shellscript(s, **kwargs)
|
||||
|
||||
# -- this is conditionally built--see logic in make_name_pdf() below
|
||||
|
|
|
@ -69,7 +69,8 @@ class DocbookSGML(BaseDoctype, SignatureChecker):
|
|||
--verbose \\
|
||||
-- "index.sgml" "{source.dirname}/index.sgml"'''
|
||||
indexsgml = os.path.join(self.source.dirname, 'index.sgml')
|
||||
self.removals.add(indexsgml)
|
||||
if not self.config.script:
|
||||
self.removals.add(indexsgml)
|
||||
return self.shellscript(s, **kwargs)
|
||||
|
||||
@depends(move_blank_indexsgml_into_source)
|
||||
|
@ -109,7 +110,8 @@ class DocbookSGML(BaseDoctype, SignatureChecker):
|
|||
--force \\
|
||||
-- "index.sgml" "{source.dirname}/index.sgml"'''
|
||||
logger.debug("%s creating %s", self.source.stem, indexsgml)
|
||||
self.removals.add(indexsgml)
|
||||
if not self.config.script:
|
||||
self.removals.add(indexsgml)
|
||||
return self.shellscript(s, **kwargs)
|
||||
|
||||
@depends(move_indexsgml_into_source)
|
||||
|
|
Loading…
Reference in New Issue