Overview

Request 563703 accepted

- Support Leap 15.0 by detecting the OS and setting the RepoUrl
appropriately



Dominique Leuenberger's avatar

+%if 0%{?suse_version} >= 1550 && !0%{?sle_version}

Except if you ever except this to be built against openSUSE 13.x, being is_opensuse and not having sle_version defined implies TW already (I'm not happy about 1550 version comparison - but can live with it)


Dominique Leuenberger's avatar
+%if 0%{?is_opensuse}
+%if 0%{suse_version} == 1550
+URL="http://download.opensuse.org/tumbleweed/repo/oss"
+%endif
+%if 0%{suse_version} == 1500 && 0%{?sle_version} == 150000
+URL="http://download.opensuse.org/distribution/leap/15.0/repo/oss"
+%endif
+%endif
+if [ -z "$URL" ]; then
+   echo "Building for unknown distro - no repository specified."
+    exit 1
+fi

That sounds a bit too strict and fragile, especially for TW.

Better detect TW as %if 0%{?suse_version} && !0%{?sle_version} then we don't have to hard-lock it on 1550

for Leap we could go as far as convert 150000 automatically to 15.0 (15.1 will be 150100, and so on)

Request History
Fabian Vogt's avatar

favogt created request

- Support Leap 15.0 by detecting the OS and setting the RepoUrl
appropriately


Fabian Vogt's avatar

favogt accepted request

openSUSE Build Service is sponsored by