mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-26 15:55:56 +02:00
Update to 2022-01-12 10:14
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user