mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-10 19:19:04 -04:00
Remove origin repos on uninstall
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user