aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2021-03-26 21:14:29 -0600
committerTim Harder <radhermit@gmail.com>2021-03-26 21:14:29 -0600
commit208c44a6c1682273df224a0ff73f8e29d977db5b (patch)
tree39ee73ae228f07714d0935bdfc003ea0be4a904f /src
parentbump version (diff)
downloadpkgdev-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.py4
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()