Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information