Skip to content

Commit

Permalink
fedora: introduce RAWHIDE
Browse files Browse the repository at this point in the history
Adds a `RAWHIDE` constant that can be used for features that are only
supposed to exist in rawhide and gives us a single place to bump that
version.
  • Loading branch information
supakeen committed Feb 29, 2024
1 parent 7b420c5 commit ae9e63b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/distro/fedora/package_sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ func liveInstallerPackageSet(t *imageType) rpmmd.PackageSet {
},
}

if common.VersionGreaterThanOrEqual(t.arch.distro.osVersion, "41") {
if common.VersionGreaterThanOrEqual(t.arch.distro.osVersion, RAWHIDE) {
ps = ps.Append(rpmmd.PackageSet{
Include: []string{
"anaconda-webui",
Expand All @@ -560,7 +560,7 @@ func liveInstallerPackageSet(t *imageType) rpmmd.PackageSet {
func imageInstallerPackageSet(t *imageType) rpmmd.PackageSet {
ps := anacondaPackageSet(t)

if common.VersionGreaterThanOrEqual(t.arch.distro.osVersion, "41") {
if common.VersionGreaterThanOrEqual(t.arch.distro.osVersion, RAWHIDE) {
ps = ps.Append(rpmmd.PackageSet{
Include: []string{
"anaconda-webui",
Expand Down
3 changes: 3 additions & 0 deletions pkg/distro/fedora/version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package fedora

const RAWHIDE = "41"

0 comments on commit ae9e63b

Please sign in to comment.