X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fdbconn.py;h=aa71c180073f1986b764ffb9bf450158e1213dfe;hb=67813baaced0cffca3f470dd2c63e9042dde4b6a;hp=e8a68390c5989bfdffbc655785c413c1d550f33f;hpb=c94d8bb3dc23bf45f88fa9e53e6dd0ca767d8725;p=dak.git diff --git a/daklib/dbconn.py b/daklib/dbconn.py index e8a68390..aa71c180 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -1161,7 +1161,7 @@ class PoolFile(ORMObject): def fullpath(self): return os.path.join(self.location.path, self.filename) - def is_valid(self, filesize = -1, md5sum = None):\ + def is_valid(self, filesize = -1, md5sum = None): return self.filesize == long(filesize) and self.md5sum == md5sum def properties(self): @@ -1583,7 +1583,8 @@ class Location(ORMObject): self.archive_type = 'pool' def properties(self): - return ['path', 'archive_type', 'component', 'files_count'] + return ['path', 'location_id', 'archive_type', 'component', \ + 'files_count'] def not_null_constraints(self): return ['path', 'archive_type']