@@ -11,19 +11,19 @@ import sys
11
11
BOTS_DIR = os .path .realpath (f'{ __file__ } /../../bots' )
12
12
sys .path .append (BOTS_DIR )
13
13
14
- # libvpx is a firefox dependency, but it is not available in the boot.iso
15
- # https://bugzilla.redhat.com/show_bug.cgi?id=2242446
14
+ missing_packages = "cockpit-ws cockpit-bridge cockpit-storaged fedora-logos"
15
+ # Install missing firefox dependencies.
16
16
# Resolving all dependencies with dnf download is possible,
17
17
# but it packs to many packages to updates.img
18
- missing_packages = "cockpit-ws cockpit-bridge cockpit-storaged firefox dbus-glib libvpx fedora-logos "
18
+ missing_packages_incl_deps = "firefox"
19
19
20
20
from machine .machine_core import machine_virtual # NOQA: imported through parent.py
21
21
22
22
23
23
def build_rpms (srpm , image , verbose , quick ):
24
24
subprocess .check_call ([os .path .join (BOTS_DIR , "image-download" ), image ])
25
25
machine = machine_virtual .VirtMachine (image = image )
26
- packages_to_download = missing_packages
26
+ packages_to_download = missing_packages + " anaconda-core" ;
27
27
try :
28
28
machine .start ()
29
29
machine .wait_boot ()
@@ -41,16 +41,18 @@ def build_rpms(srpm, image, verbose, quick):
41
41
if scenario .startswith ("cockpit-pr-" ):
42
42
cockpit_pr = scenario .split ("-" )[- 1 ]
43
43
machine .execute (f"dnf copr enable -y packit/cockpit-project-cockpit-{ cockpit_pr } " , stdout = sys .stdout )
44
- elif scenario .startswith ("anaconda-pr-" ):
44
+ if scenario .startswith ("anaconda-pr-" ):
45
45
anaconda_pr = scenario .split ("-" )[- 1 ]
46
46
machine .execute (f"dnf copr enable -y packit/rhinstaller-anaconda-{ anaconda_pr } " , stdout = sys .stdout )
47
- packages_to_download += " anaconda-core"
47
+ else :
48
+ machine .execute (f"dnf copr enable @rhinstaller/Anaconda " , stdout = sys .stdout )
48
49
49
50
# download cockpit rpms
50
51
# FIXME boot.iso on rawhide does not currently contain the new cockpit dependencies
51
52
# This will change once we include this changes upstream and start building boot.iso with the new dependencies
52
53
# Then we can move this to the /cockpit-pr scenario above
53
54
machine .execute (f"dnf download --destdir /var/tmp/build/ { packages_to_download } " , stdout = sys .stdout , timeout = 300 )
55
+ machine .execute (f"dnf download --resolve --destdir /var/tmp/build/ { missing_packages_incl_deps } " , stdout = sys .stdout , timeout = 300 )
54
56
55
57
# download rpms
56
58
vm_rpms = machine .execute ("find /var/tmp/build -name '*.rpm' -not -name '*.src.rpm'" ).strip ().split ()
0 commit comments