[wpkg-users] Exception on broken server package
Malte Starostik
malte at malte.homeip.net
Wed May 20 00:26:44 CEST 2009
Hi,
I just installed WPKG 1.1.0-M21 today and stumbled over a small bug:
I provoked WPKG by removing an installed package (listed in wpkg.xml) from packages.xml
This leads to an exception in line 4612 because serverPackage is null and getPackageName()
only checks the name attribute for null but not the node itself.
var serverPackage = getPackageNode(getPackageID(upgradePkgNode));
===> logStatus("Remove: Checking status of '" + getPackageName(serverPackage) +
"' (" + (iSortedPkg+1) + "/" + sortedUpgradeList.length + ")");
if (serverPackage != null) {
// start upgrade first
installPackage(serverPackage);
}
Cheers,
Malte
More information about the wpkg-users
mailing list