def _launch_pipeline(apt_helper, extraction_dir): (md5sum_in_read, md5sum_in_write) = os.pipe() md5sum_out_read = launch_helper.launch( parallel_md5sums_checker.run, [md5sum_in_read], [md5sum_in_write]) (apt_fetcher_in_read, apt_fetcher_in_write) = os.pipe() apt_fetcher_out_read = launch_helper.launch( apt_fetcher_process.AptFetcher(apt_helper).run, [md5sum_out_read, apt_fetcher_in_read], [md5sum_in_write, apt_fetcher_in_write]) differ_out_read = launch_helper.launch( differ_process.create(extraction_dir), [apt_fetcher_out_read], [md5sum_in_write, apt_fetcher_in_write]) return (os.fdopen(md5sum_in_write, "w"), os.fdopen(apt_fetcher_in_write, "w"), os.fdopen(differ_out_read, "r"))
def _spawner(): (in_read, in_write) = os.pipe() out_read = launch_helper.launch(md5sums_checker.run, [in_read], [in_write]) return (os.fdopen(in_write, "w"), os.fdopen(out_read, "r"))