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:
Eric Fried 2018-08-16 17:14:19 -05:00 committed by Matt Riedemann
parent d20bff9385
commit a2206aeb5b
1 changed files with 5 additions and 3 deletions

View File

@ -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('')