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: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
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.
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/wpkg-users