openSUSE / obs-build

OBS build script, can be used with OBS or stand alone
GNU General Public License v2.0
130 stars 181 forks source link

Support zypper ar foo.repo in Dockerfile builds #590

Open Vogtinator opened 3 years ago

Vogtinator commented 3 years ago

When passing a .repo file to zypper ar, it has to download the file, which doesn't work inside the OBS build environment. Instead, it could rewrite such calls to perform the plain zypper ar url alias instead.

RUN zypper ar http://download.opensuse.org/repositories/openSUSE:/Tools/openSUSE_Factory/openSUSE:Tools.repo
adrianschroeter commented 3 years ago

I pushed a hot fix for this very special case, but this needs some further cleanup, so I keep this open.

SchoolGuy commented 1 year ago

This bit me today too. If you explain to me what the cleanup is I will happily implement it @adrianschroeter .