summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-10-26 15:45:09 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-10-26 15:45:09 -0400
commit86de8218b74e2b304071c66ba325485300f0451b (patch)
tree4d4fb3f1fef5329dbd66a21a93ccd95e8000d9fd
parent0862b9b9f2dfcc600b1b2c0a6f5d5e7cc35164e4 (diff)
downloadb4-86de8218b74e2b304071c66ba325485300f0451b.tar.gz
Create an attid for unchange patch tracking
The new attestation code did away with attid, but we still use it for tracking unchanged patches between series. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 364e3f0..f7486f8 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -1576,6 +1576,10 @@ class LoreAttestation:
self.mv = False
self.pv = False
+ @property
+ def attid(self):
+ return '%s-%s-%s' % (self.i[:8], self.m[:8], self.p[:8])
+
def __repr__(self):
out = list()
out.append(' i: %s' % self.i)