Skip to content

Fix install from local RPMs with --installroot and --disablerepo=*#562

Open
sshedi wants to merge 1 commit intovmware:devfrom
sshedi:installrepo
Open

Fix install from local RPMs with --installroot and --disablerepo=*#562
sshedi wants to merge 1 commit intovmware:devfrom
sshedi:installrepo

Conversation

@sshedi
Copy link
Contributor

@sshedi sshedi commented Mar 14, 2026

Internalise the cmdline repo before building file provides so that file dependencies (e.g. /usr/bin/cp for bash) are satisfied from the RPMs being installed. Without this, file provides were built before the cmdline repo was internalized, so the solver did not see them and resolution failed with "nothing provides ...".
Add a pytest that reproduces this scenario (download bash then install from local RPMs into installroot with --disablerepo=*), skipped when the package server is unreachable.

Fixes: e890607

@sshedi sshedi force-pushed the installrepo branch 3 times, most recently from 91556e4 to 9afa08c Compare March 14, 2026 13:21
Internalize the cmdline repo before building file provides so file deps
(e.g. /usr/bin/cp for bash) are satisfied from the RPMs being installed.

Add pytest that runs this scenario when package server is reachable

Fixes: e890607

Signed-off-by: Shreenidhi Shedi <shreenidhi.shedi@broadcom.com>
@oliverkurth
Copy link
Contributor

The fix and the test do not seem related - please separate into two commits, and update the title and description, or create a separate PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants