Skip to content

Commit a69dbe9

Browse files
Sam ThursfieldTingPing
authored andcommitted
Ignore the --metadata argument of flatpak build-finish
An app may use `--metadata` in the `finish-args` section to add section/key/value entries in the metadata file. If we pass this through to `flatpak build`, it's interpreted to be a filename. Since it's not a filename, this leads to the metadata file not being found, and an error is raised like this: /home/sam/src/gnome-photos/.flatpak-builder/rofiles/rofiles-qtBvVQ not initialized, use flatpak build-init
1 parent c270877 commit a69dbe9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/builder-manifest.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4135,7 +4135,8 @@ builder_manifest_run (BuilderManifest *self,
41354135
!g_str_has_prefix (arg, "--runtime") &&
41364136
!g_str_has_prefix (arg, "--command") &&
41374137
!g_str_has_prefix (arg, "--extra-data") &&
4138-
!g_str_has_prefix (arg, "--require-version"))
4138+
!g_str_has_prefix (arg, "--require-version") &&
4139+
!g_str_has_prefix (arg, "--metadata"))
41394140
g_ptr_array_add (args, g_strdup (arg));
41404141
}
41414142
}

0 commit comments

Comments
 (0)