Commit Graph

160 Commits

Author SHA1 Message Date
Evan Goode 9717c055b5 Release 4.21.1 2024-08-14 23:03:26 +00:00
Evan Goode d29dfa0634 Release 4.21.0 2024-06-18 16:10:33 -04:00
Jan Kolarik e3cb438c0f Release 4.20.0 2024-04-24 13:16:32 +02:00
Evan Goode 9b2b2e8dda Release 4.19.2 2024-03-29 11:38:32 -04:00
Evan Goode e84837bea9 Release 4.19.1 2024-03-28 15:01:12 -04:00
Jan Kolarik 0e40047074 Bump the version and update libdnf due to new filelists behavior 2024-01-26 09:33:46 +01:00
Jan Kolarik 1c43d09991 Release 4.18.2 2023-12-08 11:44:42 +01:00
Jan Kolarik 41a287e2bd Release 4.18.1 2023-11-07 08:09:45 +01:00
Jan Kolarik 8dfa0c9050 Release 4.18.0 2023-10-18 13:31:53 +02:00
Evan Goode 552e61ef0b [spec] Bump version and depend on libdnf 0.71.1
Require new version of libdnf so that dnf remains a protected package,
see https://github.com/rpm-software-management/libdnf/pull/1621.
2023-09-25 10:39:09 +02:00
Jaroslav Rohel 8806b2ee99 crypto: Use libdnf crypto API instead of using GnuPG/GpgME
- It is compatible with the new librepo. The new librepo may use
  a different backend than GpgME internally.

- Removes dependency on GnuPG/gpgme.
2023-08-31 08:55:43 +02:00
Nicola Sella cb1b361563 Release 4.16.2 2023-07-27 13:04:24 +02:00
Jan Kolarik 94b7cc7956 Release 4.16.1 2023-05-29 14:25:58 +02:00
Jan Kolarik 74491afd61 Release 4.16.0 2023-05-25 16:39:05 +02:00
Jan Kolarik 1ef42f78b5 Release 4.15.1 2023-05-18 10:27:51 +02:00
Jan Kolarik 5306910d06 Release 4.15.0 2023-04-06 09:22:42 +02:00
Jaroslav Rohel e50875b3f5 Release 4.14.0 2022-09-09 13:21:13 +02:00
Jaroslav Rohel ef09e48fc3 Release 4.13.0 2022-05-30 08:59:19 +01:00
Jaroslav Rohel 956b5c74ba Release 4.12.0 2022-04-27 11:46:45 +02:00
Pavla Kratochvilova fba1e2ec93 Release 4.11.1 2022-03-14 11:56:39 +01:00
Jaroslav Rohel b9758590d9 Use rpm.TransactionSet.dbCookie() to determining if rpmdb has changed
DNF was using private method `hawkey.Sack._rpmdb_version()` from libdnf.
The method computes SHA1 hash from sorted list of hashes stored in
the headers of the instaled packages. And it adds prefix of the number
of installed packages to the computed hash. The result was stored
to the history database and used to detect changes in the rpm database.

The patch uses new oficial librpm API function
`rpm.TransactionSet.dbCookie()`. This is a cleaner solution.
It is also a step to remove the `._rpmdb_version()` method from libdnf.
It is an attempt to remove SHA1 calculations from libdnf.
Troubleshooting FIPS compatibility.

= changelog =
msg: Use rpm.TransactionSet.dbCookie() to determining if rpmdb has changed
type: bugfix
resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2043476
2022-02-04 17:12:11 +01:00
Jaroslav Mracek a3d3528922 Allow destdir option with modulesync command 2021-12-08 15:58:20 +01:00
Pavla Kratochvilova bd691b784f Release 4.10.0 2021-10-21 08:31:48 +02:00
Marek Blaha 4d0c3337fc Bump the version 2021-10-11 08:25:20 -04:00
Jaroslav Mracek beddf1b28d Add exclude_from_weak packages to the goal (RhBug:1699672)
It exclude_from_weak packages for solver and remove them from the list
of candidates for weak dependencies. It will prevents of installing
packages that are recommended or supplementing installed or installing
packages.

Additionally it add mechanism to identify unmet weak deps and
exclude_from_weak them in Goal.

https://bugzilla.redhat.com/show_bug.cgi?id=1699672

= changelog =
msg: Add support for excluding packages to be installed as weak dependencies
type: enhancement
resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1699672

= changelog =
msg: Add support for autodetecting packages to be excluded from being installed as weak dependencies
type: enhancement
resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1699672
2021-09-30 09:50:38 +02:00
Pavla Kratochvilova f85cf31395 Release 4.9.0 2021-09-16 14:41:05 +02:00
Pavla Kratochvilova e7b29753dc Release 4.8.0 2021-06-14 15:25:46 +02:00
Jaroslav Mracek 53582d75ce [API] Add new method for reset of security filters 2021-03-03 16:21:19 +01:00
Nicola Sella f98356aff8 Release 4.6.1 2021-03-02 15:05:07 +01:00
Nicola Sella c826d7db40 Release 4.6.0 2021-01-28 17:50:32 +01:00
Nicola Sella 36a3ffaee4 Release 4.5.2 2020-12-03 16:25:03 +01:00
Jaroslav Mracek b6bc9fa8e6 Add module switch-to support (RhBug:1792020)
It is a combination of module rpm distrosync, module profile switch and
module stream switch.

= changelog =
msg:           Add new `module switch-to` command for switching content
of module streams
type:          enhancement
resolves:      https://bugzilla.redhat.com/show_bug.cgi?id=1792020
2020-12-02 14:59:21 +01:00
Lukáš Hrázký 3e6e7839e1 Add a get_current() method to SwdbInterface
The method returns the transaction that is currently being created in
Swdb, before it is stored to sqlite.
2020-11-18 15:02:43 +01:00
Nicola Sella bc912ac2a8 Release 4.4.2 2020-11-09 15:58:43 +01:00
Nicola Sella 57768033f5 Add allow_vendor_change option (RhBug:1788371)
= changelog =
msg:           Add allow_vendor_change option (RhBug:1788371)
type:          enhancement
resolves:      https://bugzilla.redhat.com/show_bug.cgi?id=1788371

Closes: #1602
Approved by: Conan-Kudo
2020-10-22 12:57:06 +00:00
Nicola Sella b9b7623892 Release 4.4.0 2020-10-06 15:29:27 +02:00
Pavla Kratochvilova 639c10e59c Add librepo logger for handling messages from librepo (RhBug:1816573)
The messages from librepo are now logged into libdnf logger, but with
different source (libdnf.utils.Logger.LOG_SOURCE_LIBREPO) to distinguish
between them.

This commit adds functionality to handle the librepo messages in dnf,
writing them into the same file as before (dnf.const.LOG_LIBREPO).

https://bugzilla.redhat.com/show_bug.cgi?id=1816573
2020-07-21 10:41:37 +02:00
Lukáš Hrázký 4cecfcd4a5 repo: catch libdnf.error.Error in addition to RuntimeError in load() (RhBug:1788182)
The Repo class from libdnf now throws an instance of libdnf::RepoError
instead of std::runtime_error.

It would be best to add a corresponding Python exception to the SWIG
interface for this error, but it's complicated and the code is being
rewritten for dnf-5. It's also a question whether other than RepoError
exceptions can be thrown from the Repo class, and those should probably
end up being caught here as well...

I'm keeping the RuntimeError in the catch as well, since I can't be sure
some underlying code being called from the libdnf::Repo class doesn't
still throw that.

https://bugzilla.redhat.com/show_bug.cgi?id=1788182
2020-05-20 11:52:40 +02:00
Jaroslav Rohel 0b6566335d Remove args "--set-enabled", "--set-disabled" from DNF (RhBug:1727882)
The arguments are valid for "config-manager" plugin. The fix removes
they from general DNF arguments. Another fix will add these arguments
into the config-manager plugin.

Note:
There are another "config-manager" arguments "--enable" and "--disable"
in the DNF general section. They cannot be moved into config-manager
plugin because of Python argparser abbreviation.
2020-05-12 14:42:38 +02:00
Pavla Kratochvilova eecab8e1ca Bump version and dependency on libdnf
The previous PR was rebased and the change of version disappeared.
2020-03-25 08:52:59 +01:00
Pavla Kratochvilova 4789e35c28 Respect repo priority when listing packages (RhBug:1800342)
https://bugzilla.redhat.com/show_bug.cgi?id=1800342
2020-03-24 14:22:35 +01:00
Jaroslav Mracek 88f48426f4 Add new hook for commands
Run_resolved() hook is run after resolved before transaction is
performed (do_transaction).

Closes: #1589
Approved by: m-blaha
2020-02-14 11:10:27 +00:00
Aleš Matěj ff1972b520 Release 4.2.18 2020-01-15 10:51:14 +01:00
Jaroslav Mracek 7a43cebe57 Fix synchronization of version in spec and VERSION.cmake
It fixes fail when cmake command is used.

cmake ..
CMake Error at VERSION.cmake:3 (if):
  if given arguments:

    "DEFINED" "DNF_VERSION" "AND" "NOT" "4.2.17" "STREQUAL"

  Unknown arguments specified
Call Stack (most recent call first):
  CMakeLists.txt:4 (INCLUDE)
2020-01-10 13:14:55 +01:00
Jaroslav Mracek c2278c94bd Enforce synchronization of DNF_VERSION with VERSION.cmake
It enforces synchronization version of rpm with version in doc,
--version and dnf const.
2020-01-09 14:39:22 -05:00
Aleš Matěj 7d0d1e8d3e Release 4.2.17 2019-11-25 10:54:56 +01:00
Aleš Matěj 4c74fe24c4 Release 4.2.16 2019-11-14 16:06:16 +01:00
Pavla Kratochvilova a4af329f07 Release 4.2.14 2019-11-05 10:26:35 +01:00
Pavla Kratochvilova b1c5f2e11d Release 4.2.11 2019-09-19 11:20:15 +02:00
Pavla Kratochvilova 46371d2ca8 Release 4.2.9 2019-08-13 14:30:11 +02:00