[wpkg-users] Added /noremve patch included
Thomas Bøge Nielsen
thomas at boegenielsen.dk
Thu Jan 25 20:56:33 CET 2007
Well - i made a small patch, to that I can use wpkg as I need to.
I added the argument /noremove
It prevents any removal of packages so I will never remove packages when
I use /synchronize. In that manner I can use profiles to add software -
without removing.
This is my first .js - so bare with me..
/Thomas
--- wpkg-0.9.10.js Mon Jul 10 19:47:14 2006
+++ wpkg.js Thu Jan 25 20:41:16 2007
@@ -99,6 +99,7 @@
var err_summary = "";
var debug = false;
var dryrun = false;
+var noremove = false;
var quiet = false;
var profile;
@@ -220,6 +221,11 @@
forceInstall = true;
}
+ // process property named arguments that set values
+ if (isArgSet(argv, "/noremove")) {
+ noremove = true;
+ }
+
if (argn("rebootcmd") != null) {
rebootCmd=(argn("rebootcmd"));
}
@@ -597,7 +603,7 @@
if (found) {
dinfo("Checked removal of package: " + packageName);
notifyUserStart();
- removePackage(removablesArray[i]);
+ if (!noremove) removePackage(removablesArray[i]);
} else {
if (quitonerror) {
throw new Error("Installation error while synchronizing " +
@@ -919,7 +925,7 @@
return;
}
- removePackage(node);
+ if (!noremove) removePackage(node);
}
Tomasz Chmielewski wrote:
> Thomas Bøge Nielsen wrote:
>> In my packages, <depends package-id=.../> does not work.
>> I have created to simple packages, a and b. The only purpose of these
>> packages is to crate c:\tst\a and c:\tst\b
>> I have tried to setup a, so that it depends on b, and expected, that
>> an install of a would install b.
>>
>> When do wpkg /install:a
>> a is installed, but b is not.
>> I am using WPKG 0.9.10
>> Below is a.xml and b.xml from the packages-directory:
>
> If I'm not wrong, dependencies are resolved when using /synchronize
>
>
VDEV
_______________________________________________
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