openSUSE / zypper

World's most powerful command line package manager
http://en.opensuse.org/Portal:Zypper
Other
405 stars 110 forks source link

Using zypper addrepo with an OBS link on leap 15.3 often fails #437

Open Firstyear opened 2 years ago

Firstyear commented 2 years ago

What occurs when you use zypper ar obs://filesystems filesystems is that you immediately get an invalid metadata response. This is because in repos for that obs project, the new naming convention has been adopted, wehre the repo is named 15.3 instead of the previous openSUSE_Leap_$releasever. However, zypper writes the old format to the repo file, instead of the new format. which should just be $releasever

As a result, addrepo fails to successfull add the repository.

https://build.opensuse.org/repositories/filesystems

tacerus commented 1 year ago

Same issue with 15.4 on SLES:

$ zypper ar -fg obs://isv:SUSEInfra:Tools SUSEInfra:Tools
Guessed: platform = SLES_$releasever
Adding repository 'SUSEInfra:Tools' ...........................................................................................................................................[done]
Repository 'SUSEInfra:Tools' successfully added

URI         : https://download.opensuse.org/repositories/isv:/SUSEInfra:/Tools/SLES_15.4
Enabled     : Yes
GPG Check   : Yes
Autorefresh : Yes
Priority    : 99 (default priority)

One has to manually edit the .repo file and remove the SLES_ prefix.