XR for Universal Blue and Fedora Atomic Desktops
vr fedora-atomic linux
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

envision/upgrade: Install all missing host packages at once

+8 -4
+8 -4
src/atomic-xr/envision.nu
··· 22 22 def ensure-host-packages [ 23 23 ...packages: string 24 24 ] { 25 - $packages 25 + let missing_packages = $packages 26 26 | each {|package| 27 27 if (rpm -q $package | complete | get exit_code) != 0 { 28 - rpm-ostree install $package 29 - # TODO: Notification actions 30 - notify-send -u critical $"`($package)` installed" "Please reboot or use `rpm-ostree ex apply-live` before attempting to launch Envision." 28 + $package 31 29 } 30 + } 31 + 32 + if ($missing_packages | is-not-empty) { 33 + rpm-ostree install ...$missing_packages 34 + # TODO: Notification actions 35 + notify-send -u critical "Package(s) installed" "Please reboot or use `rpm-ostree ex apply-live` before attempting to launch Envision." 32 36 } 33 37 } 34 38