Remove origin repos on uninstall

tingping/wmclass
Alexander Larsson 2016-02-25 11:44:23 +01:00
parent eadb10cba7
commit f89e004fa3
1 changed files with 7 additions and 0 deletions

View File

@ -132,6 +132,13 @@ xdg_app_builtin_uninstall (int argc, char **argv, GCancellable *cancellable, GEr
return FALSE;
}
if (repository != NULL &&
g_str_has_suffix (repository, "-origin") &&
xdg_app_dir_get_remote_noenumerate (dir, repository))
{
ostree_repo_remote_delete (xdg_app_dir_get_repo (dir), repository, NULL, NULL);
}
if (!xdg_app_dir_mark_changed (dir, error))
return FALSE;