mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-28 16:43:09 +00:00
Allow tasks as well as advisories as workarounds
This will make my life a bit easier in the next hour or two. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
5652b62484
commit
0e534a3150
11
lib/utils.pm
11
lib/utils.pm
@ -448,12 +448,17 @@ sub setup_workaround_repo {
|
|||||||
"33" => []
|
"33" => []
|
||||||
);
|
);
|
||||||
# then we'll download each update for our release:
|
# then we'll download each update for our release:
|
||||||
my $advisories = $workarounds{$version};
|
my $advortasks = $workarounds{$version};
|
||||||
foreach my $advisory (@$advisories) {
|
foreach my $advortask (@$advortasks) {
|
||||||
|
my $cmd = "bodhi updates download --updateid=$advortask";
|
||||||
|
if ($advortask =~ /^\d+$/) {
|
||||||
|
my $arch = get_var("ARCH");
|
||||||
|
$cmd = "koji download-task --arch=$arch --arch=noarch $advortask";
|
||||||
|
}
|
||||||
my $count = 3;
|
my $count = 3;
|
||||||
my $success = 0;
|
my $success = 0;
|
||||||
while ($count) {
|
while ($count) {
|
||||||
if (script_run "bodhi updates download --updateid=$advisory", 180) {
|
if (script_run $cmd, 180) {
|
||||||
$count -= 1;
|
$count -= 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user