[wpkg-users] [Bug 79] Major WPKG enhancements, remote logging, doc, internal restructuring

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Tue Nov 6 09:01:50 CET 2007


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





--- Comment #11 from Rainer Meier <skybeam at users.sourceforge.net>  2007-11-06 09:01:46 ---
I would like to add another "side-note" here.

I just skimmed the mailing lists and found the following
<http://sourceforge.net/mailarchive/forum.php?thread_name=63dc64100711051447q77a9be53q3812e98576f308e9%40mail.gmail.com&forum_name=wpkg-users>.

I want to point out that with my changes this behavior slightly changed. Each
package which is supposed to be installed (referenced within profiles.xml) is
passed to the installPackage() function. This one takes care about the
dependencies now. It makes sure that all dependencies are installed recursively
in descending order (as a kind of dependency tree).

I did this since from my point of view wpkg needs to assure that all
dependencies are installed before a package can be actually installed. Some
installations might even fail if a dependency is not fulfilled. From my point
of view the pre-existing algorithm is too lazy and requires working-around
correct dependency handling by specifying higher priorities for dependent
packages.

With my changes I can have dependent packages with absolutely lowest priority
(e.g. prio 1) without even adding them directly to the profile. They still get
installed _before_ the package which depends on it (which is correct from my
point of view).

Failure handling: The new algorithm will fail installation of a package where
its dependencies could not be installed. It will simply print a message that at
least one dependency failed to be installed.

>From my point of view it makes no sense trying to install a package which
defines a dependency which failed to be installed. For example I have a package
called 'shortcut'. It just installs "shortcut.exe" to create shortcuts. Lots of
my package depend on it since they use post-install scripts (simple batch
files) to create new shortcuts. The 'shortcut' package is not part of any
profile but referenced by lots of packages as a dependency. Its priority is set
to a very low value of 1. In case 'shortcut' is not available it makes no sense
trying to install another package which depends on it since its installation
will fail partially.

Regarding this I propose to update <http://wpkg.org/Package_dependencies> as
well in case my changes will be "officially released".


My enhancements can also provide an alternative solution for
<http://sourceforge.net/mailarchive/forum.php?thread_name=472A0747.3040204%40solutionsforprogress.com&forum_name=wpkg-users>.


-- 
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
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users



More information about the wpkg-users mailing list