On 03/12/2013 02:14 PM, Martin Vidner wrote:
> In recipes/default.rb:
>
>> @@ -41,10 +41,16 @@
>>    end
>>
>>  when "suse"
>> +  if node["lsb"]["description"][/^SUSE Linux Enterprise Server/]
>> +    zypp_release = "SLE_" + node["lsb"]["release"] + "_SP" + node["lsb"]["patchlevel"]
>> +  elsif node["lsb"]["description"][/^openSUSE/]
>> +    zypp_release = "openSUSE_" + node["lsb"]["release"]
>> +  end
>
> OK, this is ugly but I guess necessary because we haven't solved
> http://tickets.opscode.com/browse/OHAI-339 yet. In the future this
> should become
>
> |# platform_version = "12.3" or "11 SP2"
> # platform = "opensuse" or "suse"
> repo_version = platform_version.gsub " ", "_"
> repo = {"suse" => "SLE_", "opensuse" => "openSUSE"}[platform] + repo_version
> |
>
> Grr. Notice how our platform does not help with choosing the right repo?
>

Yes i noticed that.



-- 
Tomasz Paszkowski
Senior Software Engineer SUSE Linux Enterprise Applications
SUSE LINUX Products GmbH
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5
90409 Nürnberg
Germany