[wpkg-users] [Bug 23] Package download patch

bugzilla-daemon at wpkg.org bugzilla-daemon at wpkg.org
Wed Jun 6 14:01:09 CEST 2007


Please reply using this URL only: http://bugs.wpkg.org/show_bug.cgi?id=23





------- Additional Comments From mangoo at mch.one.pl  2007-06-06 14:01 -------
Patch by Chris (cfreeze @@@ cfreeze ... com):

I've attached a patch for wpkg that does the following.  Using the
information contained in the <download> property, this patch allows wpkg
to download the file from a web server.  This in part derived from an
entry in the bugzilla directory, however this was done with the approach
of being minimally invasive.  More work could be done on the LANG support
as it will currently download all the file entries contained in the
package entry.

Here is a more concrete example for a packages entry for the Adobe Reader:

<download lang="ALL"
url="ftp://ftp4.adobe.com/pub/adobe/reader/win/8.x/8.0/enu/AdbeRdr80_en_US.exe"
saveto="adobereader/AdbeRdr80_DLM_en_US.exe" />


The patch uses the information contained in the "saveto" line along with
three variables at the top of the wpkg.js (These could be moved to the
config.xml file instead) to create a URL.  This URL is then downloaded to
a location as specified by one of the previously mentioned variables.  The
file is then downloaded mirroring the directory structure as specified in
the "saveto" property.  The user then modifies the cmd lines to use the
new location.  In this case the download location is defaulted to %TEMP%
and the  install cmd references where the file would be after downloading.

<install cmd="%TEMP%\adobereader\AdbeRdr80_DLM_en_US.exe /S -nos_ne
-nos_o"%TEMP%\adberdr"">


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


wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users



More information about the wpkg-users mailing list