My testing environment apparently wasn't good for testing reuse of the
item list, my bad. I've fixed both the code and my testing environment.
This patch should be applied to SVN asap, please.
--- do.c-unfixed Sat Jul 28 16:37:15 2007
+++ do.c Sat Jul 28 16:33:56 2007
@@ -2808,6 +2808,7 @@
{
ProcessPendingPackages(prev_pkgmgr, prev_action, &pending_pkgs);
DeleteItemList( pending_pkgs );
+ pending_pkgs = NULL;
}
/* Handle install/remove logic now. */
@@ -2824,6 +2825,7 @@
{
RemovePackage( ptr->pkgmgr, &pending_pkgs );
DeleteItemList( pending_pkgs );
+ pending_pkgs = NULL;
}
}
else if (ptr->action == pkgaction_upgrade)
@@ -2843,6 +2845,7 @@
{
InstallPackage( ptr->pkgmgr, &pending_pkgs );
DeleteItemList( pending_pkgs );
+ pending_pkgs = NULL;
}
}
}
@@ -2860,6 +2863,7 @@
{
ProcessPendingPackages(prev_pkgmgr, prev_action, &pending_pkgs);
DeleteItemList( pending_pkgs );
+ pending_pkgs = NULL;
}
}
--
Jo Rhett
senior geek
Silicon Valley Colocation
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine