-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to obtain solvable filelists #20
Comments
The filelist is not an idarray, but a list of (dirname id, basename) pairs, so lookup_idarray cannot work. You have to use a dataiterator to iterate over the filelist: for dm in s.pool.Dataiterator(s.id, solv.SOLVABLE_FILELIST, "", Sorry about that SEARCH_SUBSTRING, it's currently the only way to force stringification |
(Oh, I forgot that you also need to add SEARCH_COMPLETE_FILELIST if you want to get all files, not just the filelist from the main primary file.) |
Ok, with the latest commit it's a bit easier: for dm in s.Dataiterator(solv.SOLVABLE_FILELIST, None, solv.Dataiterator.SEARCH_FILES): |
How can one obtain the filelist of a solvable? Tried solvable.lookup_idarray(solv.SOLVABLE_FILELIST)
The text was updated successfully, but these errors were encountered: