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

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('')
Reference in New Issue
openstack/nova-specs
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.