Giter Site home page Giter Site logo

Comments (3)

andrii-suse avatar andrii-suse commented on June 21, 2024 1

For this specific problem you can add ?AVOID_COUNTRY=ru to urls in /etc/zypp/repos.d/*.repo files.
So corresponding line in .repo file will look something like:
baseurl=https://download.opensuse.org/repositories/server:/monitoring/15.4/?AVOID_COUNTRY=ru

Unfortunately I don't have easier solution at the moment, but let me know if such workaround is possible for you.

from mirrorcache.

manfredw avatar manfredw commented on June 21, 2024

Thx, I will try it. :-)

Is this a documented parameter?
Are there multiple values allowed? (separator?)

But as you said this is only a workaround.
I would prefer a positive logic like PREFER_COUNTRY or PREFER_REGION to avoid the maintenance of a blacklist...

from mirrorcache.

andrii-suse avatar andrii-suse commented on June 21, 2024

Unfortunately no much documentation atm besides unit tests, e.g.

echo test get parameter AVOID_COUNTRY

Separator is coma (see example below)

COUNTRY and REGION are detected automatically, and they are preffered when possible, you can check that such detection works properly using route /rest/myip , e.g.:

curl download.opensuse.org/rest/myip

If that info in output of that command is incorrect - you can add REGION and COUNTRY the same way to url. So it will try to find the closest mirror. You might try combining these variables like

?REGION=eu&COUNTRY=be&AVOID_COUNTRY=de,ru

from mirrorcache.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.