rpm-software-management / libdnf

Package management library.
GNU Lesser General Public License v2.1
184 stars 139 forks source link

Reinstalling a packge warns "cannot find THE_PACKAGE in uninst-start" #1653

Closed ppisar closed 5 months ago

ppisar commented 6 months ago

Using microdnf (compiled from the latest Fedora 40 sources) with libdnf-0.73.1-20240417004923.1.g85432dfd.fc41.x86_64 produces 3 "cannot find" libdnf warnings:

# ~test/fedora/microdnf/microdnf-3.10.0/redhat-linux-build/dnf/microdnf reinstall bashDownloading metadata...

(microdnf:2616): libdnf-WARNING **: 14:37:05.006: Skipping refresh of rpminspect: cannot update repo 'rpminspect': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Status code: 404 for https://download.copr.fedorainfracloud.org/results/dcantrell/rpminspect/fedora-rawhide-$arch/repodata/repomd.xml (IP: 52.222.214.128)
Package                                                                 Repository                 Size
Reinstalling:
 bash-5.2.26-3.fc40.x86_64                                              f41-build                1.9 MB
   replacing bash-5.2.26-3.fc40.x86_64
Transaction Summary:
 Installing:        0 packages
 Reinstalling:      1 packages
 Upgrading:         0 packages
 Obsoleting:        0 packages
 Removing:          0 packages
 Downgrading:       0 packages
Is this ok [y/N]: y
Downloading packages...
Running transaction test...
Reinstalling: bash;5.2.26-3.fc40;x86_64;f41-build

(microdnf:2616): libdnf-WARNING **: 14:37:10.710: cannot find bash in uninst-start

(microdnf:2616): libdnf-WARNING **: 14:37:10.710: cannot find bash in uninst-progress

(microdnf:2616): libdnf-WARNING **: 14:37:10.710: cannot find bash in uninst-progress
Complete.

This is a regression triggered by 85432dfd048912083897ab687488087038a9ac96 commit.

ppisar commented 6 months ago

@kontura, could you look at it?