@param source_suites: suites to copy the source from if they are not
in C{suite} or C{True} to allow copying from any
suite.
@param source_suites: suites to copy the source from if they are not
in C{suite} or C{True} to allow copying from any
suite.
@type extra_source_archives: list of L{daklib.dbconn.Archive}
@param extra_source_archives: extra archives to copy Built-Using sources from
@type extra_source_archives: list of L{daklib.dbconn.Archive}
@param extra_source_archives: extra archives to copy Built-Using sources from
for f in source.files.itervalues():
src = os.path.join(self.original_directory, f.filename)
dst = os.path.join(self.directory, f.filename)
for f in source.files.itervalues():
src = os.path.join(self.original_directory, f.filename)
dst = os.path.join(self.directory, f.filename)
try:
db_file = self.transaction.get_file(f, source.dsc['Source'])
db_archive_file = session.query(ArchiveFile).filter_by(file=db_file).first()
try:
db_file = self.transaction.get_file(f, source.dsc['Source'])
db_archive_file = session.query(ArchiveFile).filter_by(file=db_file).first()
changed_by = get_or_set_maintainer(control.get('Changed-By', control['Maintainer']), self.session)
if source_suites is None:
changed_by = get_or_set_maintainer(control.get('Changed-By', control['Maintainer']), self.session)
if source_suites is None:
- self._install_to_suite(build_queue.suite, source_component_func, binary_component_func, extra_source_archives=[suite.archive])
+ self._install_to_suite(build_queue.suite, source_component_func, binary_component_func, source_suites=source_suites, extra_source_archives=[suite.archive])