http://bugzilla.wpkg.org/show_bug.cgi?id=136 Summary: Removal actions fail if not preceeded by install/upgrade actions. Product: WPKG Version: 1.1.x-M Platform: PC OS/Version: Windows XP Status: NEW Severity: blocker Priority: P2 Component: wpkg.js AssignedTo: mangoo at wpkg.org ReportedBy: k.e.jones at brighton.ac.uk QAContact: wpkg-users at lists.wpkg.org Hiya, Sorry about the big title :-( I think this one's probably already on the dev. line by inference but I thought I'd better re-iterate it for logging purposes as it may be relevant to recent queries. More to the point I have some code that should eliminate the problem from a design concept but it requires reasonable tinkering with the code and I'm not sure if this might be redundant if there's a newer version imminent. <Summary> Although the real life actions of removing a package and installing a package are "similar" (i.e. the actions and processing of the actual commands should be the same, it should just be the bits around those actions that have significance), the code, as it stands, doesn't mirror the similarity. Essentially: The removePackage function doesn't include environment variable handling whereas the installPackage routines DO. This is just a "missing code" thing but it has some awkward effects. I don't think many people would have noticed this except in boundary conditions. It's one of those hard to find ones. As the environment variable handling is applied to the whole environment around WPKG.JS and most people are using %SOFTWARE% strictly as a pointer to a single software repository and as it's very likely that all removal actions have been preceded by an install action, the environment has most likely been "prepared" accurately by the script but not strictly in a logical way in response to the XML settings and package independance ideas. As I mnetioned I've got some code ideas but they need some explaining so I'll be back soon with attachments and a summary of them. There's many ways to skin a cat... Regards, Keith -- Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. |