Please consider the attached patch to package.c and do.c, which provides further changes made necessary by the packages rewrite done last year. A few details about what the patch does:

* do.c, bug: Remove the duplicate appending of the package name in do.c when a package remove happens before PackageList is called, because PackageList appends the packages (with version string) found.

* package.c, feature: Split logic for package upgrades of sun/freebsd from other package managers in UpgradePackage, as the other package managers have the ability to do some sort of atomic upgrade--that is, the upgrade is handled by the installer; the old package does not need to be (and in some cases, should not) be uninstalled prior. This makes action=upgrade now work for Gentoo, Red Hat/RPM-based, and Debian without any more code needing to be written.

* package.c, feature: Write the PortagePackageList so that action=remove is now available for Portage.

Let me know if I can further explain any of the actual code.

Attachment: portage.patch
Description: Binary data




--
Eric Searcy
OSU Open Source Lab


Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to