Hi

        I've found a bug in the package dependency patch i've sent in on
20/03/06. You get duplicate package list entries that need to be
installed when you use the patch. Normally its no problem because wpkg
doesn't try to install packages twice, but its still not usefull at all.

        This patches fixes this.

        Greets,
                Andre




--- wpkg-0.9.7-test1/wpkg.js    Wed Mar 22 12:09:08 2006
+++ wpkg.js     Thu Mar 30 15:05:57 2006
@@ -1744,11 +1744,13 @@
             if (packageNode != null) {
                // add package-id dependencies 
                appendPackageDependencies(packageArray, packageNode);
+               if (!searchArray(packageArray, packageNode)) {
                 // add the new node to the array _after_ adding dependencies
                 packageArray.push(packageNode);
             }
         }
             }
+    }
 
     return packageArray;
 }

begin:vcard
fn:Andre Ilie
n:Ilie;Andre
org:Photonic Sense GmbH;IT NOC
adr:;;Am Goldberg 3;Eisenach;TH;99817;Germany
email;internet:[EMAIL PROTECTED]
title:Systemadministration
tel;work:+49 3691 73 18 0
tel;fax:+49 3691 73 18 79
note:I haven't lost my mind, it's backed up on tape somewhere....
x-mozilla-html:FALSE
url:http://www.photonic-sense.com/
version:2.1
end:vcard

Reply via email to