From 208c44a6c1682273df224a0ff73f8e29d977db5b Mon Sep 17 00:00:00 2001 From: Tim Harder Date: Fri, 26 Mar 2021 21:14:29 -0600 Subject: pkgdev mask: change removal format to a 'tag: value' style --- src/pkgdev/scripts/pkgdev_mask.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/pkgdev/scripts/pkgdev_mask.py b/src/pkgdev/scripts/pkgdev_mask.py index 920b421..ec744be 100644 --- a/src/pkgdev/scripts/pkgdev_mask.py +++ b/src/pkgdev/scripts/pkgdev_mask.py @@ -82,7 +82,7 @@ class Mask: comment: List[str] atoms: List[atom_cls] - _removal_re = re.compile(r'^Removal on (?P\d{4}-\d{2}-\d{2})') + _removal_re = re.compile(r'^Removal: (?P\d{4}-\d{2}-\d{2})') def __str__(self): lines = [f'# {self.author} <{self.email}> ({self.date})'] @@ -215,7 +215,7 @@ def _mask(options, out, err): if options.rites: removal_date = today + timedelta(days=options.rites) removal = removal_date.strftime('%Y-%m-%d') - mask_args['comment'].append(f'Removal on {removal}') + mask_args['comment'].append(f'Removal: {removal}') mask_file.add(Mask(**mask_args)) mask_file.write() -- cgit v1.2.3-65-gdbad