Comments (10)
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.
@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.
I don't know exactly where the repos names are defined. But I presume that:
- repos names are specific to a distro;
- repos names are constant during a release life.
Thus, we can have a config file (like yaml format), or adding information to a present config file, which is to provide or select with each package at distro level.
At the moment, I have done a draft with a definition in the code:
https://github.com/papoteur-mga/dnfdragora/blob/master/dnfdragora/dialogs.py#L186
from dnfdragora.
@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.
@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.
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.
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.
Any improvement here?
from dnfdragora.
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.
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)
- Clicking to the right of a checkbox sets a remove flag even if the package isn't installed. HOT 1
- Dnfdragora require changes for latest libyui stack
- dnf Dragora constantly crashes, does not even work in wayland. HOT 2
- dnf dragora 2.1.2 won't maximize on gnome wayland on fedora 36 HOT 14
- dnfdragora 2.1.2 starts the app window with 0 width HOT 9
- Dnfdragora backend's (dnfdeamon) ignores DNF's variables HOT 3
- Fedora: dnfdragora doesn't respect /etc/dnf/vars HOT 3
- Feature Request: Clicking on Update Notification should open main GUI HOT 4
- dfndagora hang when search criterion is empty HOT 1
- feature request: add option to save column width ...
- Prepare for DNF 5 HOT 14
- dnfdragora opening as a line. HOT 8
- The app is squashed when is opened HOT 8
- 'Update information' crash dnfdragora HOT 4
- Create an rpm package from dnfdragora sources ? HOT 1
- Broken Matrix room link in README HOT 1
- Updates are available, but the updates list is empty HOT 4
- Statistics in dnfdragora
- dnfdragora-updater Won't start F40 Plasma 6 rc-1 HOT 4
- Dnfdragora doesn't finish the job sometimes recently HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dnfdragora.