Commit 0e497c9d authored by Michael Murtaugh's avatar Michael Murtaugh

more nopublish debugging

parent 820cb2e7
...@@ -168,15 +168,12 @@ def main (args): ...@@ -168,15 +168,12 @@ def main (args):
pass pass
text = getjson(info['localapiurl']+'getText?'+urlencode(data)) text = getjson(info['localapiurl']+'getText?'+urlencode(data))
print ("""Checking for nopublish {} in ***
{}
***""".format(args.nopublish, text), file=sys.stderr)
########################################## ##########################################
## ENFORCE __NOPUBLISH__ MAGIC WORD ## ENFORCE __NOPUBLISH__ MAGIC WORD
########################################## ##########################################
if args.nopublish and args.nopublish in text: if args.nopublish and args.nopublish in text['data']['text']:
# NEED TO PURGE ANY EXISTING DOCS # TRY TO PURGE ANY EXISTING DOCS
print ("NOPUBLISH", file=sys.stderr) print ("NOPUBLISH!", file=sys.stderr)
try_deleting((p+raw_ext,p+".raw.html",p+".diff.html",p+".meta.json")) try_deleting((p+raw_ext,p+".raw.html",p+".diff.html",p+".meta.json"))
continue continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment