Git Product home page Git Product logo

Comments (10)

anaselli avatar anaselli commented on June 2, 2024

It would be nice to have some additional repository information from dnfdaemon, such as if a repo is mandatory for distro (core, update, etc) or optional (backport, non-free, from copr, etc) in such a way the "normal" user could enable/disable only those that are optional. Mandatory ones could be shown in expert mode instead. Sources and debug repository must be managed as exception though, debug as expert, source never shown maybe?

from dnfdragora.

Conan-Kudo avatar Conan-Kudo commented on June 2, 2024

@anaselli I suspect that might not be something that dnfdaemon can or should know, as DNF certainly doesn't care. This is more of a frontend usability thing, so it makes sense handle it at our level.

from dnfdragora.

papoteur-mga avatar papoteur-mga commented on June 2, 2024

I don't know exactly where the repos names are defined. But I presume that:

from dnfdragora.

anaselli avatar anaselli commented on June 2, 2024

@papoteur-mga that sounds good, i would change disabling with expert-mode since it's in dnfdragora and set it in config file, then look at ui.py self.config to see how it is used :)

from dnfdragora.

papoteur-mga avatar papoteur-mga commented on June 2, 2024

@anaselli OK, I will propose a revision to manage a config file. However, I don't understand well what you mean with: "i would change disabling with expert-mode since it's in dnfdragora"

from dnfdragora.

anaselli avatar anaselli commented on June 2, 2024

self.simplified = { 'categs':[{'name':'Core','disabling':False,'repos':['mageia-x86_64','updates-x86_64','mageia-i586','updates-i586'] }, {'name':'Nonfree','disabling':True,'repos':['mageia-x86_64-nonfree', 'updates-x86_64-nonfree', 'mageia-i586-nonfree','updates-i586-nonfree'] }, {'name':'Tainted','disabling':True,'repos':['mageia-x86_64-tainted','updates-x86_64-tainted','mageia-i586-tainted',' updates-i586-tainted'] }, ] }
I mean disabling: False with expert: True for instance, in such a way configuration file shows what is shown in expert mode, disabling seems that the repo is disabled to me.
I need to check your code however to understand why you added category name, I would have expected just a {repo-name, view-mode}, I'm not sure that could fit with fedora mirror list.
@Conan-Kudo any ideas on that?

from dnfdragora.

papoteur-mga avatar papoteur-mga commented on June 2, 2024

The mean of the above table, now in a config file, is to define 3 options, Core, Nonfree and Tainted which can be enabled by the user as a whole. Each option enable/disable the repos from the list which is given.

Now, I have not yet dealt with the state at start, to display the option as already enabled or disabled.

from dnfdragora.

anaselli avatar anaselli commented on June 2, 2024

Any improvement here?

from dnfdragora.

papoteur-mga avatar papoteur-mga commented on June 2, 2024

I had a look for differentiate standard repositories from added like Copr.
I studied the content of the struture given by a Getrepo command from dnfdeamon.
I found that Mageia's repositories use something in mirrorlist, but copr's field is null.
Can this be a criteria to identify repositories which are not standard?
If yes, I can thus keep them in the standard list.
Papoteur

from dnfdragora.

Conan-Kudo avatar Conan-Kudo commented on June 2, 2024

No, unfortunately. It's very possible for other repositories to be backed by a mirrorlist or metalink. For example, OBS RPM-MD repositories targeting Mageia 6 / Cauldron would have a mirror network.

from dnfdragora.

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.