[wpkg-users] Force all pending installs?

Tomasz Chmielewski mangoo at wpkg.org
Sun Apr 23 16:10:59 CEST 2006


sbotsford wrote:
> 
> At present wpkg will halt as soon as it hits an error.
> 
> I would like an option to force an attempt on all pending installs.
> 
> I don't want the action of /force -- that ignores wpkg.xml.
> 
> Suppose that machine X is supposed to have packages A,B,C,X,Y,Z
> Suppose that currently A,B, and C are installed.
> 
> Further suppose that the install command for X is incorrect.
> At present wpkg will process stuff until X, then abort.
> 
> I want a flag that does the equivalent of make -k on unix -- it will try 
> each install until it reaches an error.
> 
> Let's call the flag /attemptall
> 
> wpkg /synchronize  /attemptall would do the following:
> 
> Checks A, it's there; carry on.
> Checks B, it's there; carry on.
> Checks C, it's there; carry on.
> Checks X, it's not there, run the install command for X
>     -- Fails.  (This is where wpkg would normally abort.)
> Checks Y, it's not there, run the install for Y
> checks Z, it's not there, run the install for Z
> 
> So at the end of this I have only 1 missing package instead of 3.
> 
> This action can reduce the effect of missing depends lines.
> 
> New scenario, same 6 packages, but this time
> Z depends on C, and Y depends on Z
> 
> Before, if you did this, then wpkg would fail when it hit Y every time.  
> With /attemptall, running wpkg a second time would fix it.
> -- The first time it would try Y, fail because of the dependency check, 
> try Z, and install it.  Next round, Z is there, so Y installs ok.
> 
> (Overall, I think that /attemptall should be the default behaviour.
> /stoponerror should cause the present behaviour.)

There is a patch for this already:

http://bugs.wpkg.org/show_bug.cgi?id=8

Just vote for it, so it gets more attention :)

-- 
Tomasz Chmielewski
http://wpkg.org







_______________________________________________
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