diff options
author | Tim Harder <radhermit@gmail.com> | 2021-03-26 21:14:29 -0600 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2021-03-26 21:14:29 -0600 |
commit | 208c44a6c1682273df224a0ff73f8e29d977db5b (patch) | |
tree | 39ee73ae228f07714d0935bdfc003ea0be4a904f /src | |
parent | bump version (diff) | |
download | pkgdev-208c44a6c1682273df224a0ff73f8e29d977db5b.tar.gz pkgdev-208c44a6c1682273df224a0ff73f8e29d977db5b.tar.bz2 pkgdev-208c44a6c1682273df224a0ff73f8e29d977db5b.zip |
pkgdev mask: change removal format to a 'tag: value' style
Diffstat (limited to 'src')
-rw-r--r-- | src/pkgdev/scripts/pkgdev_mask.py | 4 |
1 files changed, 2 insertions, 2 deletions
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<date>\d{4}-\d{2}-\d{2})') + _removal_re = re.compile(r'^Removal: (?P<date>\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() |