[wpkg-users] [Bug 193] New: remove does not download files

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Tue Oct 26 13:32:07 CEST 2010


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

           Summary: remove does not download files
           Product: WPKG
           Version: 1.1.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: wpkg.js
        AssignedTo: mangoo at wpkg.org
        ReportedBy: wpkg at trash-mail.com
         QAContact: wpkg-users at lists.wpkg.org


Hello,

some of my packages need additional files when they are being removed (eg for
cleanup). These files are ONLY needed at removal time. Hence I put the
following example code in my package definition:

<remove cmd='file.ext' timeout='300'>
<download url='https://example.com/file.ext' target='file.ext' />
</remove>

When uninstalling the package, file.ext is executed, however it is never
downloaded from the webserver (and therefore the execution fails of course).
When I put the exact same download element in an <install> or <upgrade> action
it works as expected (when doing an install / upgrade). However inside a
<remove> action it does nothing. There is no HTTP request to the server being
made and when running WPKG with debug output there is no sign of any download
attempt.

The documentation says "The download commands are always executed when used on
the global package level. Since WPKG version 1.1.0 however, this command is
also allowed as a sub-node of _any_ of the other commands." However this
doesn't seem to be true. After looking at the code it looks like the code path
of the remove action never calls any download functions. Has this been
forgotten?

-- 
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