From: Ansgar Burchardt Date: Wed, 30 May 2012 17:45:18 +0000 (+0200) Subject: Allow to set fingerprint in __init__ for DBBinary and DBSource. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=10c45ea69f601c74d6fbb9b34ec75e4aa75440d3;p=dak.git Allow to set fingerprint in __init__ for DBBinary and DBSource. --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index c0801b42..256ed4a9 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -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):