[Bug 959804] New: zypper ar obs://graphics uses wrong URL
http://bugzilla.opensuse.org/show_bug.cgi?id=959804 Bug ID: 959804 Summary: zypper ar obs://graphics uses wrong URL Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.1 Hardware: x86-64 OS: openSUSE 42.1 Status: NEW Severity: Normal Priority: P5 - None Component: libzypp Assignee: zypp-maintainers@forge.provo.novell.com Reporter: bwiedemann@suse.com QA Contact: qa-bugs@suse.de CC: adrian@suse.com, rbrown@suse.com Found By: Development Blocker: --- Steps To Reproduce: zypper ar obs://graphics graphics zypper ref Actual Results: /etc/zypp/repos.d/graphics.repo has baseurl=http://download.opensuse.org/repositories/graphics/openSUSE_$releasever which is the wrong URL for Leap, because $releasever is 42.1 but the download URL ends in openSUSE_Leap_42.1 because that is the default used in the OBS add-repo web-UI there are a number of possible approaches to solve this e.g. 1 create automated symlinks in OBS publisher openSUSE_42.1 => openSUSE_Leap_42.1 2 or convince all people to rename projects to openSUSE_42.1 (which gets messy) 3 or add auto-detection magic to zypper (and a many other repo-related tools) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=959804
http://bugzilla.opensuse.org/show_bug.cgi?id=959804#c2
--- Comment #2 from Michael Andres
[Manual page zypper(8)]
These URIs have the form of obs://project/[platform], where project is the name of the OBS > project and platform is the target platform (OS) for which the repository is intended. If platform is omitted, the obs.platform value from zypper.conf is used.
Admitted, if you pass no platform and also don't define one in zypper.conf, then zypper guesses 'openSUSE_$releasever'. If there is a schema for the platform that can be derived from the opensuse.prod, I can enhance the guesses. Otherwise the user has to define one. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=959804
http://bugzilla.opensuse.org/show_bug.cgi?id=959804#c3
--- Comment #3 from Bernhard Wiedemann
http://bugzilla.opensuse.org/show_bug.cgi?id=959804
http://bugzilla.opensuse.org/show_bug.cgi?id=959804#c4
Michael Andres
<productline>openSUSE</productline> <summary>openSUSE Tumbleweed</summary>
Question to Coolo: Is there actually a schema to guess the (default) name of the download directory from the data in the .prod file? For Tumbleweed mls@ also suggested to use 'openSUSE_Factory' rather than 'openSUSE_Tumbleweed'; right? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=959804
http://bugzilla.opensuse.org/show_bug.cgi?id=959804#c5
Stephan Kulow
http://bugzilla.opensuse.org/show_bug.cgi?id=959804
http://bugzilla.opensuse.org/show_bug.cgi?id=959804#c6
--- Comment #6 from Adrian Schröter
http://bugzilla.opensuse.org/show_bug.cgi?id=959804
http://bugzilla.opensuse.org/show_bug.cgi?id=959804#c7
--- Comment #7 from Michael Andres
http://bugzilla.opensuse.org/show_bug.cgi?id=959804
http://bugzilla.opensuse.org/show_bug.cgi?id=959804#c8
Michael Andres
participants (1)
-
bugzilla_noreply@novell.com