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

dnf clean: Do not report an error on a nonexistent cache directory #1707

Commits on Sep 18, 2024

  1. dnf clean: Do not report an error on a nonexistent cache directory

    If /var/cache/libdnf5 directory did not exist, "dnf clean all"
    reported and error:
    
        Cannot iterate the cache directory: "/var/cache/libdnf5"
    
    This patch optimizes this case to no operation. If there is no cache,
    there is nothing to remove.
    
    If the iterator fails for a different reason, the message is ammended
    with an operating system error message, explaining the cause.
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2313032
    ppisar committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    39213e6 View commit details
    Browse the repository at this point in the history