upgrade: reject --reboot and --check-diff used together
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
f140f33d4d
commit
aa6415bb9c
@ -88,6 +88,13 @@ rpmostree_builtin_upgrade (int argc,
|
||||
error))
|
||||
goto out;
|
||||
|
||||
if (opt_check_diff && opt_reboot)
|
||||
{
|
||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||
"cannot specify both --reboot and --check-diff");
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!rpmostree_load_os_proxy (sysroot_proxy, opt_osname,
|
||||
cancellable, &os_proxy, error))
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user