more nopublish debugging
This commit is contained in:
parent
820cb2e78e
commit
0e497c9d20
@ -168,15 +168,12 @@ def main (args):
|
||||
pass
|
||||
|
||||
text = getjson(info['localapiurl']+'getText?'+urlencode(data))
|
||||
print ("""Checking for nopublish {} in ***
|
||||
{}
|
||||
***""".format(args.nopublish, text), file=sys.stderr)
|
||||
##########################################
|
||||
## ENFORCE __NOPUBLISH__ MAGIC WORD
|
||||
##########################################
|
||||
if args.nopublish and args.nopublish in text:
|
||||
# NEED TO PURGE ANY EXISTING DOCS
|
||||
print ("NOPUBLISH", file=sys.stderr)
|
||||
if args.nopublish and args.nopublish in text['data']['text']:
|
||||
# TRY TO PURGE ANY EXISTING DOCS
|
||||
print ("NOPUBLISH!", file=sys.stderr)
|
||||
try_deleting((p+raw_ext,p+".raw.html",p+".diff.html",p+".meta.json"))
|
||||
continue
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user