[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wpkg-users
Subject:    [wpkg-users] Bugfix for duplicate entries in package list when using package dependencies
From:       Andre Ilie <ai () photonic-sense ! com>
Date:       2006-03-30 13:31:30
Message-ID: 442BDDB2.2060306 () photonic-sense ! com
[Download RAW message or body]

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_patch2.diff" (text/plain)]

--- 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;
 }


["ai.vcf" (text/x-vcard)]
-------------------------------------------------------
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic