X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fdbconn.py;h=b46eede790c80edbd8759cd8bbdf64b8709a22d9;hb=ede86e29be45ad4ef113ea2cfd4203db78043882;hp=06b20c38e61489804185d1dcfb0e9f162e356142;hpb=5a8b37be92716a1d9bde21a3d6d196801d7df240;p=dak.git diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 06b20c38..b46eede7 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -1070,8 +1070,12 @@ __all__.append('get_dscfiles') ################################################################################ class PoolFile(object): - def __init__(self, *args, **kwargs): - pass + def __init__(self, filename = None, location = None, filesize = -1, \ + md5sum = None): + self.filename = filename + self.location = location + self.filesize = filesize + self.md5sum = md5sum def __repr__(self): return '' % self.filename @@ -1522,8 +1526,10 @@ __all__.append('get_dbchange') ################################################################################ class Location(object): - def __init__(self, *args, **kwargs): - pass + def __init__(self, path = None): + self.path = path + # the column 'type' should go away, see comment at mapper + self.archive_type = 'pool' def __repr__(self): return '' % (self.path, self.location_id)