Update to 2022-01-12 10:14

This commit is contained in:
Daniel Berteaud
2022-01-12 10:14:43 +01:00
parent 898ae43de4
commit e73f05f073
22 changed files with 61 additions and 32 deletions

View File

@@ -172,7 +172,9 @@ sub handle_submit {
} else {
log_verbose("No email address for $submiter, no notification will be sent");
}
my $src_pkg = RPM2->open_package($srpm);
# Do not check the signature here
# We could try to submit a signed src.rpm for which we do not have the key system-wide
my $src_pkg = RPM2->open_package($srpm, RPM2->_rpmvsf_nosignatures);
if (not $src_pkg->is_source_package){
log_verbose("Couldn't parse $srpm as a valid srpm");
return;
@@ -234,6 +236,8 @@ sub handle_submit {
move $built_pkg, $dest . '/' . basename($built_pkg);
}
}, $result);
log_info("[$job_id] Removing old packages");
qx(rm -f \$(repomanage --keep=2 --old $repo_dir));
log_info("[$job_id] Updating repo metadata for $target");
qx(createrepo --checksum sha -x "*debuginfo*" --update -c $repo_cache_dir $repo_dir);
if ($? != 0) {