Fix various typos found by Lintian

This commit is contained in:
Luca Boccassi 2025-07-22 14:03:00 +01:00
parent f042ef5ab6
commit 7cdca4dfbf
12 changed files with 15 additions and 15 deletions

View File

@ -831,7 +831,7 @@
- dnfdaemon: Missing signal registration
- doc: config manager plugin: wrap too long lines
- doc: document config-manager plugin
- Packit: get version from specfile for copr_builds againts main
- Packit: get version from specfile for copr_builds against main
- Update tests to use new `load_repos()` API
- Use new load_repos instead of deprecated update_and_load_enabled_repos
- Make `libdnf5::repo::Repo::load()` private

View File

@ -81,7 +81,7 @@ private:
SourceRepofile source_repofile; // Location of source repository configuration file.
std::string repo_id; // The user-defined ID of the newly created repository.
bool create_missing_dirs{false}; // Allows to create missing directories.
bool create_missing_dirs{false}; // Allows one to create missing directories.
FilePolicy file_policy{FilePolicy::ERROR};
std::string save_filename; // User-defined name of newly saved configuration file.
std::map<std::string, std::string> repo_opts; // Options for the new repository.

View File

@ -43,7 +43,7 @@ private:
std::map<std::string, std::string> main_setopts;
std::map<std::string, std::map<std::string, std::string>> in_repos_setopts;
std::map<std::string, std::map<std::string, std::string>> matching_repos_setopts;
bool create_missing_dirs{false}; // Allows to create missing directories.
bool create_missing_dirs{false}; // Allows one to create missing directories.
};
} // namespace dnf5

View File

@ -36,7 +36,7 @@ public:
private:
std::map<std::string, std::string> setvars;
bool create_missing_dirs{false}; // Allows to create missing directories.
bool create_missing_dirs{false}; // Allows one to create missing directories.
};
} // namespace dnf5

View File

@ -52,7 +52,7 @@ along with libdnf. If not, see <https://www.gnu.org/licenses/>.
<!--
reset:
@success: `true` if the session was successfully resetted, `false` otherwise.
@success: `true` if the session was successfully reset, `false` otherwise.
@error_msg: string, contains errors encountered while resetting the session
Completely reset the session.

View File

@ -96,7 +96,7 @@ along with libdnf. If not, see <https://www.gnu.org/licenses/>.
<!--
cancel:
@success: true if the cancellation was sucessfully requested
@success: true if the cancellation was successfully requested
@error_msg: error message if the cancellation was refused
Cancel the transaction that was initiated by `do_transaction()`. The transaction can only be canceled during the package download phase. Once the RPM transaction has begun, cancellation is no longer permitted.

View File

@ -538,7 +538,7 @@ repository configuration file should aside from repo ID consists of baseurl, met
For superuser overwrites the :ref:`cachedir <cachedir_options-label>` option value.
Allows to differentiate user and superuser cachedir.
Allows one to differentiate user and superuser cachedir.
Default: ``/var/cache/libdnf5``.

View File

@ -93,7 +93,7 @@ Subcommands
However, the options may be still defined in configuration files in drop-in directories (for example,
the default distribution configuration).
The ``unsetopt`` command removes repository configuration overides from the file named ``99-config_manager.repo``
The ``unsetopt`` command removes repository configuration overrides from the file named ``99-config_manager.repo``
located in the system repository override directory. However, the overrides may be still defined in other repository
override files (for example, the default distribution overrides). Empty sections are removed from the configuration
override file. Repository ID may contain globs. In this case, the ``repoid`` pattern is resolved and the override
@ -118,7 +118,7 @@ Subcommands
So, the variable may still exist in another directory in the list (for example, the default distribution value).
Note:
The variables ``releasever_major`` and ``releasever_minor`` are generated automatically and connot be removed.
The variables ``releasever_major`` and ``releasever_minor`` are generated automatically and cannot be removed.
.. note::

View File

@ -178,7 +178,7 @@ Output line format
* ``stop=<message>`` - throws a stop exception with <message> (added in version 1.4.0)
* ``error=<message>`` - the error <message> is logged or throws error exception whith <message> if ``raise_error=1``
* ``error=<message>`` - the error <message> is logged or throws error exception with <message> if ``raise_error=1``
(added in version 1.4.0)
* ``log.<level>=<message>`` - writes <message> to the logger with priority <level> (added in version 1.4.0)

View File

@ -68,8 +68,8 @@ matched against:
sequentially until a match is found.
For example ``<package-spec-NP>`` is first matched againts NEVRAs and if no
matching NEVRA is found it is matched againts Provides.
For example ``<package-spec-NP>`` is first matched against NEVRAs and if no
matching NEVRA is found it is matched against Provides.
When ``<package-spec>`` is a package name or a provide, the user can provide
additional restriction rules for matching the arguments. Basic version comparisons

View File

@ -58,7 +58,7 @@ public:
/// Sets the visibility of number widget in the total bar.
void set_total_bar_number_widget_visible(bool value) noexcept { total.set_number_widget_visible(value); }
/// Allows to preset the value of the total number of progress bars.
/// Allows one to preset the value of the total number of progress bars.
/// If the value is lower than the current number of registered progress bars, it is automatically increased.
void set_total_num_of_bars(std::size_t value) noexcept;

View File

@ -45,7 +45,7 @@ public:
RepoCallbacks & operator=(const RepoCallbacks &) = delete;
RepoCallbacks & operator=(RepoCallbacks &&) = delete;
/// OpenPGP key import callback. Allows to confirm or deny the import.
/// OpenPGP key import callback. Allows one to confirm or deny the import.
/// @param key_info The key that is about to be imported
/// @return `true` to import the key, `false` to not import
virtual bool repokey_import(const libdnf5::rpm::KeyInfo & key_info);
@ -60,7 +60,7 @@ public:
explicit RepoCallbacks2_1();
~RepoCallbacks2_1();
/// OpenPGP key remove callback. Allows to confirm or deny the removal.
/// OpenPGP key remove callback. Allows one to confirm or deny the removal.
/// @param key_info The key that is about to be removed
/// @param removal_info Additional information about the key removal
/// @return `true` to remove the key, `false` to not remove