upgrade: reject --reboot and --check-diff used together

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2015-10-07 08:42:11 +02:00
parent f140f33d4d
commit aa6415bb9c

View File

@ -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;