Comments (3)
@Bob131 This is absolutely the right time to mention this! libdnf does not yet have a fixed API, and that will only occur once its first release is made.
from libdnf.
Please if the issue is still valid, please could you open the new bugzilla with updated information like what kind of informition you are interest for which purpose?
from libdnf.
DnfRepo
is declared as a derivable type, but to get a functioning instancednf_repo_new
must be called since it sets a private field. EitherDnfRepo
needs to be a final type orcontext
made a construct property.DnfRepo
has (at least) 11 getter/setter pairs that ought to be properties:dnf_repo_{get,set}_id
dnf_repo_{get,set}_location
dnf_repo_{get,set}_filename
dnf_repo_{get,set}_packages
dnf_repo_{get,set}_enabled
dnf_repo_{get,set}_required
dnf_repo_{get,set}_cost
dnf_repo_{get,set}_module_hotfixes
dnf_repo_{get,set}_kind
dnf_repo_{get,set}_gpgcheck
dnf_repo_{get,set}_gpgcheck_md
As mentioned above, properties bring many benefits: notify signals, GBinding
s, property overrides, better GI bindings, convenience functions like g_object_set
, etc. For instance, I have a use case for which it would be convenient to be able to bind the enabled property of several repo objects together.
-
DnfPackage
is declared as a derivable type, but to get a functioning instancednf_package_new
must be called since it sets private fields. EitherDnfPackage
needs to be a final type orsack
andid
made construct properties. -
DnfContext
also has a large number of get/set functions. Being able to set/get more than one property at a time withg_object_{set,get}
would be espeically handy for an object likeDnfContext
, but the other above-mentioned benefits also apply here.
from libdnf.
Related Issues (20)
- Verify repodata integrity HOT 3
- RFE: zstd metadata support HOT 2
- Make libdnf read environment variables HTTP_PROXY and HTTPS_PROXY for global proxy configuration HOT 4
- System repo opening issue with Packagekit (only) HOT 1
- gpgme does not install gpgme-config by default HOT 4
- segfault when encountering WAL error in /var/lib/dnf/history.sqlite HOT 9
- Tests throw exception: "trailing backslash (\\)" HOT 2
- libdnf5 (python): `TransactionItem.get_reason_change_group_id()` is always empty? HOT 2
- Countme should report system age, not repository age HOT 14
- Weblate translation pulling HOT 3
- 0.71.0: test suite is failing in `test_libdnf_main` unit HOT 8
- Implement versionlock as a plugin for use in PackageKit HOT 2
- A pull request into rhel-8.10 branch executes CI tests on Fedora 38
- Difference in comment parsing HOT 1
- dnf-context: Do not modify global configuration when setting options HOT 1
- 0.73.0: test suite fails in assertion of the `test_libdnf_main` unit because use `g_assert ()` in test units HOT 1
- dnf history rollback cmd causes core dump HOT 1
- Reinstalling a packge warns "cannot find THE_PACKAGE in uninst-start" HOT 1
- Review OpenScanHub resuls for libdnf HOT 1
- Instability when updating repo and using repo_gpgcheck HOT 1
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 libdnf.