Bug 2050428 - Adjust resetRpmDb for move of RPM database
Summary: Adjust resetRpmDb for move of RPM database
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 36
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Vladimír Slávik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2042099
TreeView+ depends on / blocked
 
Reported: 2022-02-03 23:21 UTC by Adam Williamson
Modified: 2022-09-06 15:53 UTC (History)
7 users (show)

Fixed In Version: anaconda-36.16.3-1
Clone Of:
Environment:
Last Closed: 2022-09-06 15:53:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Adam Williamson 2022-02-03 23:21:51 UTC
pyanaconda/core/util.py has a resetRpmDB() function which hardcodes `/var/lib/rpm` as the RPM database location. But it's not any more:

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

so, that function - if it's still relevant - might need updating to consider the new location too.

Comment 1 Ben Cotton 2022-02-08 20:16:56 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 2 Vladimír Slávik 2022-02-11 11:00:20 UTC
Taking, needs more looking.

- Weird use of the mentioned function, looks like it might not be useful anymore.
- There are more locations hardcoding the path.

Comment 3 Vladimír Slávik 2022-02-16 13:58:20 UTC
One of the PRs to address this: https://github.com/rhinstaller/anaconda/pull/3874

Comment 4 Vladimír Slávik 2022-03-08 18:20:27 UTC
Another and hopefully last PR: https://github.com/rhinstaller/anaconda/pull/3934

Comment 5 Vladimír Slávik 2022-03-16 12:12:28 UTC
Both PRs merged for f36, but we're currently doing only patch builds so not released yet.


Note You need to log in before you can comment on or make changes to this bug.