mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 13:12:41 +00:00
Check for RPM keys before producing RPM packages
This commit is contained in:
parent
530296e104
commit
892c4c668d
2 changed files with 12 additions and 9 deletions
|
@ -436,6 +436,12 @@ class RoboFile extends \Robo\Tasks {
|
|||
$this->yell("Build target '$target' skipped: RPM tools not available");
|
||||
continue;
|
||||
}
|
||||
$installed = explode("\n", trim(`rpm -qa "gpg-pubkey*"`));
|
||||
$missing = array_diff($s['keys'], $installed);
|
||||
if ($missing) {
|
||||
$this->yell("Build target '$target' skipped: the following RPM verificcation keys are not installed:\n".implode("\n", $missing));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
$recipe = escapeshellarg($recipe[0]);
|
||||
$dist = "--dist ".escapeshellarg($s['dist']);
|
||||
|
|
|
@ -1,27 +1,24 @@
|
|||
<?php
|
||||
return [
|
||||
'arch' => [
|
||||
'type' => "arch",
|
||||
'repos' => ["http://mirror.csclub.uwaterloo.ca/archlinux/core/os/x86_64/", "http://mirror.csclub.uwaterloo.ca/archlinux/extra/os/x86_64/"],
|
||||
'keys' => [],
|
||||
'dist' => "arch",
|
||||
'recipe' => "PKGBUILD",
|
||||
'repos' => ["http://mirror.csclub.uwaterloo.ca/archlinux/core/os/x86_64/", "http://mirror.csclub.uwaterloo.ca/archlinux/extra/os/x86_64/"],
|
||||
'keys' => [],
|
||||
'output' => "/usr/src/packages/ARCHPKGS/*.pkg.tar.zst",
|
||||
],
|
||||
'debian' => [
|
||||
'type' => "debian",
|
||||
'repos' => ["http://ftp.ca.debian.org/debian/?dist=buster&component=main"],
|
||||
'keys' => [],
|
||||
'dist' => "debian10",
|
||||
'recipe' => "*.dsc",
|
||||
'repos' => ["http://ftp.ca.debian.org/debian/?dist=buster&component=main"],
|
||||
'keys' => [],
|
||||
'output' => "/usr/src/packages/DEBS/*.deb",
|
||||
],
|
||||
'suse' => [
|
||||
'type' => "rpm",
|
||||
'repos' => ["http://mirror.csclub.uwaterloo.ca/opensuse/distribution/leap/15.3/repo/oss/"],
|
||||
'keys' => ["gpg-pubkey-39db7c82-5f68629b", "gpg-pubkey-65176565-5d94a381", "gpg-pubkey-307e3d54-5aaa90a5", "gpg-pubkey-3dbdc284-53674dd4"],
|
||||
'dist' => "sl15.3",
|
||||
'recipe' => "arsse.spec",
|
||||
'repos' => ["http://mirror.csclub.uwaterloo.ca/opensuse/distribution/leap/15.3/repo/oss/"],
|
||||
'keys' => ["gpg-pubkey-39db7c82-5f68629b", "gpg-pubkey-65176565-5d94a381", "gpg-pubkey-307e3d54-5aaa90a5", "gpg-pubkey-3dbdc284-53674dd4"],
|
||||
'output' => "/home/abuild/rpmbuild/RPMS/noarch/*.rpm",
|
||||
],
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue