lib: Fix NOT_INSTALLED error when updating

tingping/wmclass
Alexander Larsson 2016-06-09 12:04:29 +02:00
parent b7ae30a77e
commit 1ddd173507
1 changed files with 1 additions and 1 deletions

View File

@ -1166,7 +1166,7 @@ flatpak_installation_update_full (FlatpakInstallation *self,
return NULL;
deploy_dir = flatpak_dir_get_if_deployed (dir, ref, NULL, cancellable);
if (deploy_dir != NULL)
if (deploy_dir == NULL)
{
g_set_error (error,
FLATPAK_ERROR, FLATPAK_ERROR_NOT_INSTALLED,