Skip to content
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

fix and refactor cache_info_with_warnings #1290

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

Conversation

romanstingler
Copy link

fixes #1105

added the missing ! in !no_warn block for ood and orphaned.
refactored the whole method, removed unwraps and improved readability.

if pkg.out_of_date.is_some() {
ood.push(cache.get(pkg.name.as_str()).unwrap().name.as_str());
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aur_pkgs comes from a call to raur.cache_info(). If a name is in the returned list it must also be in cache, so the unwraps are fine. Rest looks good to me,

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.

"-P --stats" not displaying orphans, and out-of-date packages on 2.0.1
2 participants