[wpkg-users] [Bug 153] New: Removing dependent packages more than once: failure

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Sat Apr 11 00:16:59 CEST 2009


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

           Summary: Removing dependent packages more than once: failure
           Product: WPKG
           Version: 1.1.x-M
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: wpkg.js
        AssignedTo: mangoo at wpkg.org
        ReportedBy: parasytic at gmail.com
         QAContact: wpkg-users at lists.wpkg.org


Created an attachment (id=136)
 --> (http://bugzilla.wpkg.org/attachment.cgi?id=136)
Check if package is installed before removal

I have a (admittedly very strange) package structure that looks kind of like
this:

pkg_a
--pkg_b
----pkg_c

Where pkg_b depends on pkg_a
And pkg_c depends on both pkg_b and pkg_a

(The pkg_c -> pkg_a dependency is superfluous.)

The recursion logic will attempt to remove pkg_c twice; it is the first package
to be removed, then it is attempted to be removed a second time, after pkg_b is
removed, but before pkg_a is removed (due to depending on pkg_a).

A simple solution to this problem is checking if the package is installed
before attempting to remove it. See patch.


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