mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-03 05:24:19 -04:00
builder: Inherit parent version for inherited extension
If you inherit an extension, and it has no explicit version, then use the version of the parent, as that is what would automatically be used for the parent.
This commit is contained in:
@@ -2215,6 +2215,10 @@ builder_manifest_finish (BuilderManifest *self,
|
||||
return FALSE;
|
||||
g_key_file_set_value (keyfile, group, keys[j], value);
|
||||
}
|
||||
|
||||
if (!g_key_file_has_key (keyfile, group, "version", NULL) &&
|
||||
!g_key_file_has_key (keyfile, group, "versions", NULL))
|
||||
g_key_file_set_value (keyfile, group, "version", parent_version);
|
||||
}
|
||||
|
||||
if (!g_key_file_save_to_file (keyfile,
|
||||
|
||||
Reference in New Issue
Block a user