def get_pkg(package, version, architecture, session):
if architecture == 'source':
- q = session.query(DBSource).filter_by(source=package, version=version)
+ q = session.query(DBSource).filter_by(source=package, version=version) \
+ .join(DBSource.poolfile)
else:
q = session.query(DBBinary).filter_by(package=package, version=version) \
- .join(DBBinary.architecture).filter(Architecture.arch_string.in_([architecture, 'all']))
+ .join(DBBinary.architecture).filter(Architecture.arch_string.in_([architecture, 'all'])) \
+ .join(DBBinary.poolfile)
pkg = q.first()
if pkg is None:
if action == "set" and not suite.allowcsset:
if force:
- utils.warn("Would not normally allow setting suite {0} (allowsetcs is FALSE), but --force used".format(suite_name))
+ utils.warn("Would not normally allow setting suite {0} (allowcsset is FALSE), but --force used".format(suite_name))
else:
- utils.fubar("Will not reset suite {0} due to its database configuration (allowsetcs is FALSE)".format(suite_name))
+ utils.fubar("Will not reset suite {0} due to its database configuration (allowcsset is FALSE)".format(suite_name))
if file_list:
for f in file_list: