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

           Summary: variables in file size check values are not expanded
           Product: WPKG
           Version: 1.1.3-RCx
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: wpkg.js
        AssignedTo: man...@wpkg.org
        ReportedBy: pendl2mega...@yahoo.de
         QAContact: wpkg-users@lists.wpkg.org


I am using the following check:

<check type="logical" condition="or" >
    <check type="file" condition="sizeequals" path="%ProgramFiles%\%PKG_DST%"  
   value="%PKG_SIZE%" />
    <check type="file" condition="sizeequals"
path="%ProgramFiles(x86)%\%PKG_DST%" value="%PKG_SIZE%" />
</check>

The log file contains the following error:

2011-07-03 20:01:15, DEBUG   : Variable PKG_NAME = Brief
2011-07-03 20:01:15, DEBUG   : Variable PKG_SIZE = 241511
2011-07-03 20:01:15, DEBUG   : Variable PKG_SRC =
\\vboxsrv\Stefan_Win7\Downloads\Firefox\Add-ons\brief-1.6b1-fx.xpi
2011-07-03 20:01:15, DEBUG   : Variable PKG_DST = Mozilla
Firefox\extensions\br...@mozdev.org.xpi
2011-07-03 20:01:15, DEBUG   : Variable AAR_PKG_LNG = en_US
2011-07-03 20:01:15, DEBUG   : Variable FF_LNG = en-us
2011-07-03 20:01:15, DEBUG   : Variable PDFC_SETUP_LNG = en
2011-07-03 20:01:15, DEBUG   : Finding size of C:\Program Files\Mozilla
Firefox\extensions\br...@mozdev.org.xpi|
2011-07-03 20:01:15, DEBUG   : Leaving getFileSize with size 241511
2011-07-03 20:01:15, DEBUG   : The file 'C:\Program Files\Mozilla
Firefox\extensions\br...@mozdev.org.xpi' has size 241511 - wanted %PKG_SIZE%:
the test fails
2011-07-03 20:01:15, DEBUG   : Finding size of %ProgramFiles(x86)%\Mozilla
Firefox\extensions\br...@mozdev.org.xpi|
2011-07-03 20:01:15, DEBUG   : Unable to get file size for
%ProgramFiles(x86)%\Mozilla Firefox\extensions\br...@mozdev.org.xpi : File not
found
2011-07-03 20:01:15, DEBUG   : Leaving getFileSize with size -1
2011-07-03 20:01:15, DEBUG   : The file '%ProgramFiles(x86)%\Mozilla
Firefox\extensions\br...@mozdev.org.xpi' has size -1 - wanted %PKG_SIZE%: the
test fails
2011-07-03 20:01:15, DEBUG   : Result of logical 'OR' check is false
2011-07-03 20:01:15, DEBUG   : Loading saved environment
2011-07-03 20:01:15, ERROR   : Could not process (install) Firefox Extension -
Brief.|Failed checking after installation.

Would you mind allowing environment expansion here too?

Thanks in advance,
Stefan

-- 
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users

Reply via email to