Commit Graph

42 Commits

Author SHA1 Message Date
GitHub Workflow 19667b16e1 Update translations from weblate 2024-07-23 19:44:01 +00:00
GitHub Workflow cca36bbff9 Update translations from weblate 2024-06-26 18:10:20 +00:00
Jaroslav Rohel 49ba9ad95e [libdnf, actions plugin] Support get/set repositories options, ver 1.1.0
Argument `${conf.<repoid_pattern>.<option_name>[=<value_pattern>]}` is
substituted by a list of "repoid.option=value" pairs for the matching
repositories. Pairs are separated by ',' character. The ',' character
in the value is replaced by escape sequence "\x2C".
The input `repoid_pattern` - is the repository id and can contain globs.
If `value_pattern` is used, only pairs with the matching value are
listed. The `value_pattern` can contain globs.

Output line format for setting repository option:
`conf.<repoid_pattern>.<option_name>=<value>` -  sets the value
of option `option_name` for all matching repositories.
The `repoid_pattern` - is repository id and can contain globs.
2024-06-17 10:25:52 +00:00
Jaroslav Rohel df31124f25 [libdnf, actions plugin] Use enum for pipe ends instead of magic values 2024-06-17 10:25:52 +00:00
Jaroslav Rohel 4328898f1d libdnf5 library, libdnf5 plugins: Do not export private symbols 2024-06-10 09:54:06 +00:00
GitHub Workflow 99e335bc03 Update translations from weblate 2024-06-03 14:14:48 +00:00
GitHub Workflow 93c44bf2d0 Update translations from weblate 2024-05-28 11:55:05 +00:00
Jaroslav Rohel 4fc62f76cf [libdnf, actions plugin] Support `pre/post_add_cmdline_packages` hooks
And increases plugin version to 1.0.0
2024-05-13 08:45:20 +00:00
Jaroslav Rohel d4427f5fe7 [libdnf, actions plugin] Support `repos_loaded` hook 2024-05-13 08:45:20 +00:00
Jaroslav Rohel a53012e0d8 [libdnf, actions plugin] Support `repos_configured` hook 2024-05-13 08:45:20 +00:00
Jaroslav Rohel 44a8ccc40f [libdnf, actions plugin] Mark Action class as final 2024-05-13 08:45:20 +00:00
GitHub Workflow 63bec83ad4 Update translations from weblate 2024-05-06 08:15:47 +00:00
GitHub Workflow d740e216a1 Update translations from weblate 2024-04-24 14:11:26 +00:00
Jaroslav Rohel 1bcd604cca [libdnf5 plugins] include iplugin.hpp in plugins instead of base.hpp 2024-04-23 09:31:13 +00:00
Jaroslav Rohel 60338b9866 libdnf5 IPlugin: Pass IPluginData instead of Base to constructor
IPluginData was introduced to allow future changes to the passed dataset
without changing the API and ABI.

IPluginData now represents Base. But in the future it may be
a struct/class.

And increases the libdnf5 plugin API version to 2.0.
2024-04-17 11:21:52 +00:00
Aleš Matěj c7b88428f3 Add p_impl to libdnf5::ResolveSpecSettings and add getters and setters 2024-04-10 13:56:57 +00:00
GitHub Workflow f119cd5614 Update translations from weblate 2024-04-02 09:57:08 +00:00
GitHub Workflow 09f64951bc Update translations from weblate 2024-03-15 12:23:35 +00:00
GitHub Workflow e440ea816b Update translations from weblate 2024-03-05 12:27:37 +00:00
GitHub Workflow 32577c1397 Update translations from weblate 2024-02-20 14:31:30 +00:00
GitHub Workflow ec10abec6b Update translations from weblate 2024-02-09 10:14:38 +00:00
Rafael Fontenelle cac334e544 Fix misspellings 2024-01-15 09:54:08 +00:00
GitHub Workflow 22be22bdf2 Update translations from weblate 2024-01-11 13:09:25 +00:00
GitHub Workflow 6faa7b2b82 Update translations from weblate 2024-01-02 10:05:50 +00:00
GitHub Workflow 391a3e060b Update translations from weblate 2023-12-08 14:27:55 +00:00
GitHub Workflow 8d3eea76f4 Update translations from weblate 2023-11-23 16:48:37 +00:00
Marek Blaha 3eb70dbb5e Add *.po files for libdnf5 plugins
The pot files names are unified to libdnf5-plugin-{name}.pot
2023-11-21 08:12:08 +00:00
Jaroslav Rohel 0b121a9ad7 [libdnf, actions plugin] actions.conf: Set "enabled" to "1"
"Enabled" can now be set for each action separately.
However, to enable actions, the "actions" plugin must be enabled.
If "enabled" for the "actions" plugin is set to `host-only`, the action
will not be performed for the alternate installroot even if it is enabled
for the action.
2023-11-08 15:19:09 +00:00
Jaroslav Rohel 1301acff78 [libdnf, actions plugin] Support for action options, option enabled
The fourth item in the action definition has been reserved. It is now
used to set additional action options. Options are separated by spaces.
A space within an option can be written using escaping.

One option is now supported - `enabled=<value>`.
Supported values of `value`:
* `1` - action is always enabled
* `host-only` - the action is only enabled for operations on the host
* `installroot-only` - the action is only enabled for operations in
                       the alternative "installroot"

Action can allways be disabled by commenting out the action line.
2023-11-08 15:19:09 +00:00
Jaroslav Rohel e83e66c03c [libdnf, actions plugin] Support for "plugin.version" variable 2023-11-08 15:19:09 +00:00
Jaroslav Rohel 78bf9886b9 Fix: Pass "std::string" instead of "[const] char *" in exceptions args
The exception stores the passed arguments and uses them in the catch
phase. The problem is that the text to which the saved argument points
may no longer be in memory - is destroyed when the program leaves
the scope of the variable with the text.

A safer solution than passing a pointer to memory is to use
"std::string" and pass it by value.
2023-10-25 11:00:09 +00:00
Jaroslav Rohel dccea32e5a libdnf5 plugin: Implement rhsm (Red Hat Subscription Manager) plugin
Libdnf5 plugin with basic support for Red Hat subscriptions.
Synchronizes the enrollment with the vendor system. This can change
the contents of the repositories configuration files according
to the subscription levels.
2023-09-22 08:26:43 +00:00
Jaroslav Rohel 41a64a6920 libdnf5 actions plugin: Add plugin name to config file 2023-09-08 13:59:11 +00:00
Jaroslav Rohel b755cc74e6 Add missing libraries to link with libdnf5 plugins 2023-08-31 15:00:13 +00:00
Jaroslav Mracek 5c0651a8fb Disable binary search on multiple sides
It prevents similar to exclude packages according to binary name.
2023-08-03 11:46:41 +00:00
Jaroslav Rohel de1e3258a1 libdnf5 "actions" plugin: Add default configuration to package 2023-07-21 09:37:08 +00:00
Jaroslav Rohel 6e63aa842a plugin_actions: Extend line in actions config file by "reserved" item
I plan to extend functionality of actions plugin in the future.
I want to add a new configuration item. Changing the configuration format
later - when it will be documented and used is not good.
So now I'm adding one "reserved" item.

Old format:
callback_name:package_filter:direction:command

New format:
callback_name:package_filter:direction:reserved:command

The plugin version is increased to 0.2.0.
2023-07-13 06:05:42 +00:00
Jaroslav Rohel a4c2d65f35 bgettext: Include header files in libdnf5 devel package
The header file from bgettext is used in the libdnf5 public header file.
So the bgettext header files must also be public - part of the libdnf5
devel package.
2023-06-23 07:47:40 +00:00
Jan Kolarik f3d65d5add Fix references to libdnf5 plugins 2023-06-21 06:37:49 +00:00
Jan Kolarik fc23f1d009 Change a few more comments to address libdnf5 2023-06-21 06:37:49 +00:00
Evan Goode d59db2d38a Clean up additional usages of the libdnf namespace
It's now building again.

The VSCode C++ language server didn't catch many things, so I finished
the job with a combination of regex and manual replacement.

I tried CLion's refactoring tools, but I let the rename run all night
and it didn't finish.

I couldn't get clang-change-namespace working, either.
2023-06-21 06:37:49 +00:00
Evan Goode c221a7b871 s/libdnf/libdnf5: Rename directories, change CMakeLists.txt 2023-06-21 06:37:49 +00:00