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

Removing one installed port and one unknown does not produce an error #1220

Closed
marko-turk opened this issue Apr 3, 2015 · 3 comments
Closed

Comments

@marko-turk
Copy link

Pkg remove should fail with an error if one of the specified ports is unknown.

For example:
pkg remove asdf doxygen
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
doxygen-1.8.9,2

The operation will free 12 MiB.

Proceed with deinstalling packages? [y/N]: ^C

@andrejzverev
Copy link
Contributor

Why pkg should care about package(s) which doesn't exists?
Current behavior is absolutely correct from my point of view.

@bapt
Copy link
Member

bapt commented Apr 4, 2015

pkg could maybe issue a warning about the non existing package

@marko-turk
Copy link
Author

@andrejzverev It should at least issue a warning. If I misspell one of 5 packages, pkg is not complaining and I am not made aware that one package was not removed.

marko-turk pushed a commit to marko-turk/pkg that referenced this issue Sep 19, 2016
@bapt bapt closed this as completed in 8b3d5b4 Sep 23, 2016
bapt pushed a commit that referenced this issue Sep 23, 2016
Fix #1220: show warning if pkg-delete pattern doesn't match any package
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

No branches or pull requests

3 participants