mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-29 03:26:40 -04:00
builder: Actually respect the defined branch
This commit is contained in:
@@ -803,6 +803,11 @@ builder_manifest_get_runtime_version (BuilderManifest *self)
|
||||
return self->runtime_version ? self->runtime_version : "master";
|
||||
}
|
||||
|
||||
const char *
|
||||
builder_manifest_get_branch (BuilderManifest *self)
|
||||
{
|
||||
return self->branch ? self->branch : "master";
|
||||
}
|
||||
|
||||
static char *
|
||||
xdg_app (GError **error,
|
||||
|
||||
@@ -47,6 +47,7 @@ const char * builder_manifest_get_id (BuilderManifest *self);
|
||||
const char * builder_manifest_get_id_platform (BuilderManifest *self);
|
||||
BuilderOptions *builder_manifest_get_build_options (BuilderManifest *self);
|
||||
GList * builder_manifest_get_modules (BuilderManifest *self);
|
||||
const char * builder_manifest_get_branch (BuilderManifest *self);
|
||||
|
||||
gboolean builder_manifest_start (BuilderManifest *self,
|
||||
BuilderContext *context,
|
||||
|
||||
@@ -354,7 +354,7 @@ main (int argc,
|
||||
"--exclude=/lib/debug/*",
|
||||
"--include=/lib/debug/app",
|
||||
builder_context_get_separate_locales (build_context) ? "--exclude=/share/runtime/locale/*/*" : skip_arg,
|
||||
opt_repo, app_dir_path, NULL))
|
||||
opt_repo, app_dir_path, builder_manifest_get_branch (manifest), NULL))
|
||||
{
|
||||
g_print ("Export failed: %s\n", error->message);
|
||||
return 1;
|
||||
@@ -393,7 +393,7 @@ main (int argc,
|
||||
if (!do_export (&error, TRUE,
|
||||
metadata_arg,
|
||||
files_arg,
|
||||
opt_repo, app_dir_path, NULL))
|
||||
opt_repo, app_dir_path, builder_manifest_get_branch (manifest), NULL))
|
||||
{
|
||||
g_print ("Export failed: %s\n", error->message);
|
||||
return 1;
|
||||
@@ -409,7 +409,7 @@ main (int argc,
|
||||
if (!do_export (&error, TRUE,
|
||||
"--metadata=metadata.debuginfo",
|
||||
builder_context_get_build_runtime (build_context) ? "--files=usr/lib/debug" : "--files=files/lib/debug",
|
||||
opt_repo, app_dir_path, NULL))
|
||||
opt_repo, app_dir_path, builder_manifest_get_branch (manifest), NULL))
|
||||
{
|
||||
g_print ("Export failed: %s\n", error->message);
|
||||
return 1;
|
||||
@@ -427,7 +427,7 @@ main (int argc,
|
||||
"--metadata=metadata.platform",
|
||||
"--files=platform",
|
||||
builder_context_get_separate_locales (build_context) ? "--exclude=/share/runtime/locale/*/*" : skip_arg,
|
||||
opt_repo, app_dir_path, NULL))
|
||||
opt_repo, app_dir_path, builder_manifest_get_branch (manifest), NULL))
|
||||
{
|
||||
g_print ("Export failed: %s\n", error->message);
|
||||
return 1;
|
||||
@@ -465,7 +465,7 @@ main (int argc,
|
||||
if (!do_export (&error, TRUE,
|
||||
metadata_arg,
|
||||
files_arg,
|
||||
opt_repo, app_dir_path, NULL))
|
||||
opt_repo, app_dir_path, builder_manifest_get_branch (manifest), NULL))
|
||||
{
|
||||
g_print ("Export failed: %s\n", error->message);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user