Skip to content

Add onlyif to package cleanup so it doesn't error if there's nothing to remove.#384

Open
KeithWard wants to merge 1 commit into
voxpupuli:masterfrom
KeithWard:package_cleanup
Open

Add onlyif to package cleanup so it doesn't error if there's nothing to remove.#384
KeithWard wants to merge 1 commit into
voxpupuli:masterfrom
KeithWard:package_cleanup

Conversation

@KeithWard

Copy link
Copy Markdown

Pull Request (PR) description

At least on dnf5 if you call dnf remove without specifying packages you get this error:

Missing positional argument "specs" for command "remove". Add "--help" for more information about the arguments.

To that end add an onlyif to the package cleanup so if repoquery returns no packages we don't do anything.

This Pull Request (PR) fixes the following issues

Fixes #383

At least on dnf5 if you call dnf remove without specifying packages you
get this error:

Missing positional argument "specs" for command "remove". Add "--help" for more information about the arguments.

To that end add an onlyif to the package cleanup so if repoquery returns
no packages we don't do anything.
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.

Package Cleanup Fails on DNF5 if there are no packages to remove.

1 participant