def download_deb_packages(self, package_names): for p in package_names: # run_apt_update chdir(self.ws) result = _check_call(['apt-get', 'download', '-qq', p]) if result != 0: error("Failed to download")
def generate_report(self, orig_src, new_src): if self.empty_objects_found: msg = "No real report generated since empty dumps were found" self.generate_fake_report(msg) main_step_info(msg) return 0 result = _check_call([ self.bin, '-skip-symbols', self.ignore_file, '-l', self.report_name, '-report-path', self.get_compat_report_file(), '-old', self.get_dump_file(orig_src), '-new', self.get_dump_file(new_src) ]) if result != 0: return result main_step_info("Generated: " + self.get_compat_report_file()) return 0
def download_deb_packages(self, stub): test_pkgs = glob(self.test_debs_dir + '/*.deb') for p in test_pkgs: _check_call(['cp', p, self.ws])
def extract_deb_files(self): files = self.list_files('*.deb') for f in files: result = _check_call(['dpkg', '-x', f, self.ws_files]) if result != 0: error("Failed to extract files")
def run_apt_update(self): _check_call(['apt-get', 'update'])