]> git.decadent.org.uk Git - dak.git/commitdiff
Allow to set fingerprint in __init__ for DBBinary and DBSource.
authorAnsgar Burchardt <ansgar@debian.org>
Wed, 30 May 2012 17:45:18 +0000 (19:45 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 1 Jun 2012 15:26:50 +0000 (17:26 +0200)
daklib/dbconn.py

index c0801b42511cbb2eac973e7b53bf3a82653cd3e8..256ed4a9bd5c1b411be76364d0248c5ae278980b 100755 (executable)
@@ -500,7 +500,7 @@ def subprocess_setup():
 class DBBinary(ORMObject):
     def __init__(self, package = None, source = None, version = None, \
         maintainer = None, architecture = None, poolfile = None, \
-        binarytype = 'deb'):
+        binarytype = 'deb', fingerprint=None):
         self.package = package
         self.source = source
         self.version = version
@@ -508,6 +508,7 @@ class DBBinary(ORMObject):
         self.architecture = architecture
         self.poolfile = poolfile
         self.binarytype = binarytype
+        self.fingerprint = fingerprint
 
     @property
     def pkid(self):
@@ -2459,13 +2460,14 @@ class Dak822(Deb822):
 
 class DBSource(ORMObject):
     def __init__(self, source = None, version = None, maintainer = None, \
-        changedby = None, poolfile = None, install_date = None):
+        changedby = None, poolfile = None, install_date = None, fingerprint = None):
         self.source = source
         self.version = version
         self.maintainer = maintainer
         self.changedby = changedby
         self.poolfile = poolfile
         self.install_date = install_date
+        self.fingerprint = fingerprint
 
     @property
     def pkid(self):