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

qubes-dom0-update throws non-zero error code when package already installed #3299

Open
r-cheologist opened this Issue Nov 9, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@r-cheologist

Qubes OS version:

4.0-rc2

Affected TemplateVMs:

dom0


Steps to reproduce the behavior:

PROMPT> qubes-dom0-update qubes-template-fedora-26-minimal
... Complete!

PROMPT> qubes-dom0-update qubes-template-fedora-26-minimal
.... No match for argument qubes-template-fedora-26 minimal

Expected behavior:

Along the lines of plain qubes-dom0-update - it states No new updates available and gracefully exits with error code 0 when nothing is to be done. Maybe qubes-dom0-update <PACKAGE> should state something like Package <PACKAGE> already installed, but it should DEFINITELY NOT throw an error code 1.

Actual behavior:

If the package is already installed qubes-dom0-update <PACKAGE> states the misleading/false No Match for argument <PACKAGE> and returns error code 1.

General notes:


Related issues:

@tasket

This comment has been minimized.

Show comment
Hide comment
@tasket

tasket Nov 9, 2017

Hmmm, I tried this with qubes-template-debian-9 (already installed) and it says "No packages downloaded... Nothing to do" and 0 return code. Can't reproduce on rc2.

tasket commented Nov 9, 2017

Hmmm, I tried this with qubes-template-debian-9 (already installed) and it says "No packages downloaded... Nothing to do" and 0 return code. Can't reproduce on rc2.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Nov 10, 2017

Member

"No match for argument" sounds like there was a typo in the command.

It looks like that might be happening here:

PROMPT> qubes-dom0-update qubes-template-fedora-26-minimal
.... No match for argument qubes-template-fedora-26 minimal
                                                   ^ Missing hyphen?
Member

andrewdavidwong commented Nov 10, 2017

"No match for argument" sounds like there was a typo in the command.

It looks like that might be happening here:

PROMPT> qubes-dom0-update qubes-template-fedora-26-minimal
.... No match for argument qubes-template-fedora-26 minimal
                                                   ^ Missing hyphen?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment