Delete approved template in move_implemented_specs
The move_implemented_specs tool was cleverly removing the implemented/<release>-template.rst link so it didn't clutter up the TOC. This patch whacks the approved/<release>-template.rst link as well. Change-Id: Icf75ce9d27a6ca5cdfcc147698d79669bbfbdba8
This commit is contained in:
parent
d20bff9385
commit
a2206aeb5b
|
@ -85,9 +85,11 @@ def move_implemented_specs(release, verbose=False, dry_run=False):
|
|||
'spec filename should be fixed.' % bp_name)
|
||||
warnings.append(spec_fname)
|
||||
|
||||
template_file = os.path.join(implemented_dir, template_file)
|
||||
if not dry_run and move_count and os.path.exists(template_file):
|
||||
os.unlink(template_file)
|
||||
if not dry_run and move_count:
|
||||
for d in (implemented_dir, approved_dir):
|
||||
f = os.path.join(d, template_file)
|
||||
if os.path.exists(f):
|
||||
os.unlink(f)
|
||||
|
||||
if verbose:
|
||||
print('')
|
||||
|
|
Loading…
Reference in New Issue