[wpkg-users] [Bug 255] New: Environment variable expansion in extended host attribute matching

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Thu Nov 3 00:44:44 CET 2011


http://bugzilla.wpkg.org/show_bug.cgi?id=255

           Summary: Environment variable expansion in extended host
                    attribute matching
           Product: WPKG
           Version: other
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: wpkg.js
        AssignedTo: mangoo at wpkg.org
        ReportedBy: ross at ormo.com.au
         QAContact: wpkg-users at lists.wpkg.org


Fairly minor issue I noticed when I decided to define an environment variable
for an OS matching regex just to make things easier to remember. ie. REGX_WIN7
= .+6\.1\.\d{4}

The environment variable expands fine when it is used as the value of a command
check tag:

<command type="install" cmd='' >
 <condition>
  <check type="host" condition="os" value="%REGX_WIN7%" />
 </condition>
</command>

However it does not expand when used as the value of an OS attribute for a
variable or depends tag. Nor does it work on a profile package tag:

<package>
 <depends package-id="Windows XP Support Tools" os="%REGX_WINXP%" />
</package>

<profile id="Test">
 <package package-id="7-Zip" os=%REGX_WIN7%" />
</profile>

Cheers

-- 
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the wpkg-users mailing list