From 10c45ea69f601c74d6fbb9b34ec75e4aa75440d3 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Wed, 30 May 2012 19:45:18 +0200 Subject: [PATCH] Allow to set fingerprint in __init__ for DBBinary and DBSource. --- daklib/dbconn.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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): -- 2.39.5