Gordon Klimm schrieb:


Hello there.

here is another patch from me :)

Until now, wpkg always used the client-installed packages.xml for
removal-cmd's.

you mean wpkg.xml?
unless we use "/force".


This patch does modify the remove-routines. If you remove the
"revision"-Attribute from a package inside the Server-packages.xml, wpkg
marks the package as "to be removed" and does handle it as if the
package-entry would have been removed completely.

So it will use the "remove cmd" on all workstations, right?


As difference, wpkg tries to use the server-side removal-cmd's first and
does fall back, if thre aren't any.

DRAWBACK: The "revision"-Attribute becomes a REQUIRED ATTRIBUTE

You say that "revision" is required now, but just a while ago you tried to encourage us to remove it from packages.xml? :)
I don't understand it.


My reasons why to change this:

1) possibility to modify the local file "wpkg.xml" is higher than to modify
a serverfile "packages.xml" (this IS a lesser security risk)

hmm? what do you mean?


2) whenever you installed a program and made an error for the installscript,
you know the problem by yourself.

hmm? then it wouldn't install if there was an error?


3) all changes are backward-compatible, so no harm is done. (exept for the
revision-Attribute)

but it's no feature, so we can skip it.


So: attached to this mail is a patch against wpkg.js from "WPKG 0.9-test2"


short abstract of the functionality:

/S/ = package in packages.xml on the server (also assigned in profiles.xml)

/A/ = installed package on local computer and stored in wpkg.xml (local)

Case 1: (standard procedure)
 * /S/ is removed from profiles.xml or packages.xml
-> /A/ is removed following the cmd's from wpkg.xml (local)

Case 2: (added procedure)
 * attribute "revision" in /S/ removed (I know, this does affect ALL
profiles!)
-> /A/ is removed following the cmd's from packages.xml (server)

So it is only a mean of mass removing a package, or what?
Sorry, I didn't really catch the purpose of that :)



-------------------------------------------
Another theme:

while testing the patch above, I found a flaw in "dryrun"-Implementation:
Everything installed / pretended wonderful but the reboot()-Function had no
dryrun. (I found out the hard way :)
So the attached patch does fix this problem too.

Thanks, I added that.


--
Tomek


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
wpkg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wpkg-users

Reply via email to