[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] Add accessor for `weak_signature`



---
 daklib/upload.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/daklib/upload.py b/daklib/upload.py
index 43a9e42..c058938 100644
--- a/daklib/upload.py
+++ b/daklib/upload.py
@@ -302,6 +302,13 @@ class Changes(object):
         return self.signature.valid
 
     @property
+    def weak_signature(self):
+        """C{True} if the .changes was signed using a weak algorithm
+        @type: bool
+        """
+        return self.signature.weak_signature
+
+    @property
     def signature_timestamp(self):
         return self.signature.signature_timestamp
 
@@ -576,6 +583,13 @@ class Source(object):
         return self.signature.valid
 
     @property
+    def weak_signature(self):
+        """C{True} if the .dsc was signed using a weak algorithm
+        @type: bool
+        """
+        return self.signature.weak_signature
+
+    @property
     def component(self):
         """guessed component name
 
-- 
2.1.4



Reply to: