From 86de8218b74e2b304071c66ba325485300f0451b Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Mon, 26 Oct 2020 15:45:09 -0400 Subject: 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 --- b4/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit v1.2.3