From f14c6c342ad8a8da876564892945e53cccc749d0 Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Tue, 20 Sep 2016 16:14:02 +0200 Subject: [PATCH] Do not try to produce a launcher if there is no profile --- commands/package.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/commands/package.py b/commands/package.py index d9faded..df1e5e6 100644 --- a/commands/package.py +++ b/commands/package.py @@ -257,12 +257,13 @@ def binary_package(config, logger, options, tmp_working_dir): d_products[prod_name] = (install_dir, path_in_archive) # create the relative launcher and add it to the files to add - launcher_name = config.APPLICATION.profile.launcher_name - launcher_package = produce_relative_launcher(config, - logger, - tmp_working_dir, - launcher_name, - binaries_dir_name) + if "profile" in config.APPLICATION: + launcher_name = config.APPLICATION.profile.launcher_name + launcher_package = produce_relative_launcher(config, + logger, + tmp_working_dir, + launcher_name, + binaries_dir_name) d_products["launcher"] = (launcher_package, launcher_name) -- 2.39.2