Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-2288

Operation EnvironmentVariable clears environment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 3.2.0
    • Scripting
    • None
    • Linux/X11
    • 08a123c86b9aae85da1be1542578de060df4868b (installer-framework/tqtc-installer-framework/master)

    Description

      The EnvironmentVariable operation in Qt Installer Framework component scripting API is supposed to set an environment variable - which it does. However, when it's used for the first time, it also clears the environment.

      STEPS TO REPRODUCE:
      ===================
      1) Add 'component.addOperation("EnvironmentVariable", "SFDK_AUTO_STOP_VMS", "1")'
      to createOperations() in one of the components
      2) Build the installer
      3) Run the installer

       

      EXPECTED RESULT:
      ================
      The Execute operations after the EnvironmentVariable operation are run with modified environment, so that the SFDK_AUTO_STOP_VMS environment variable is added to the system enviroment

      ACTUAL RESULT:
      ==============
      Only SFDK_AUTO_STOP_VMS variable is set, otherwise the environment is empty

       

      I have already a fix for the bug, I'll prepare a pull request shortly.

       

      Attachments

        For Gerrit Dashboard: QTIFW-2288
        # Subject Branch Project Status CR V

        Activity

          People

            installerteam Installer Team
            vige_jolla Ville Nummela
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes