mirror of
https://github.com/flatpak/flatpak.git
synced 2026-02-07 06:21:44 -05:00
flatpak_dir_deploy_appstream: Handle the no-local-commit exists case
For some reason I hit this with a test remote, and it crashes. Make it return an error instead. Closes: #1854 Approved by: alexlarsson
This commit is contained in:
committed by
Atomic Bot
parent
1df3f7a5ee
commit
b999a785f2
@@ -2170,6 +2170,9 @@ flatpak_dir_deploy_appstream (FlatpakDir *self,
|
||||
else
|
||||
do_compress = TRUE;
|
||||
|
||||
if (new_checksum == NULL)
|
||||
return flatpak_fail (error, "No appstream commit to deploy");
|
||||
|
||||
real_checkout_dir = g_file_get_child (arch_dir, new_checksum);
|
||||
checkout_exists = g_file_query_exists (real_checkout_dir, NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user