Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix paths resolving without a leading '/' #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

konsolebox
Copy link

This error happens while running some commands like 'qwhich ' or 'qlist -t '. It outputs error lines like the following:

qwhich: tree_open(): could not open repository at var/db/repos/gentoo (under root /)

Fix it by getting the real path of portroot first then decide whether rrepo has to be offsetted by the length of portroot's real path version or not.

Getting the real path of portroot first makes sure it's consistent to be matched with with the resulting path of rootovrl which is also a real path.

This error happens while running some commands like 'qwhich <pkg>' or
'qlist -t <pkg>'.  It outputs error lines like the following:

qwhich: tree_open(): could not open repository at var/db/repos/gentoo (under root /)

Fix it by getting the real path of portroot first then decide whether
rrepo has to be offsetted by the length of portroot's real path version
or not.

Getting the real path of portroot first makes sure it's consistent to be
matched with with the resulting path of rootovrl which is also a real
path.

Signed-off-by: konsolebox <konsolebox@gmail.com>
@konsolebox konsolebox force-pushed the fix_paths_resolving_without_a_root branch from dea7fb8 to 8f347b6 Compare September 13, 2024 11:54
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant