Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package_module.upgrade() API inconsistent #7217

Closed
cvrebert opened this issue Sep 13, 2013 · 2 comments
Closed

package_module.upgrade() API inconsistent #7217

cvrebert opened this issue Sep 13, 2013 · 2 comments
Assignees
Labels
Feature new functionality including changes to functionality and code refactors, etc.
Milestone

Comments

@cvrebert
Copy link
Contributor

The API for the upgrade() function of package manager modules is inconsistent.

The following modules don't allow any argument to be passed to upgrade():

  • freebsdpkg
  • pacman
  • pkgin

The following modules implement (at least) a refresh parameter:

  • apt
  • ebuild
  • pkgutil
  • win_pkg
  • yumpkg
  • yumpkg5
  • zypper

The following modules have a **kwargs parameter, which they completely ignore:

  • apt
  • pkgutil

And pkgng is a real oddball: upgrade(jail=None, chroot=None, force=False, local=False, dryrun=False):

I would ask that the API be made more uniform.

@ghost ghost assigned terminalmage Sep 13, 2013
@terminalmage
Copy link
Contributor

There are other pending changes that we are considering for pkg providers, I'll address these concerns when I implement the changes.

In particular, freebsdpkg and pkgng need a lot of work. freebsdpkg contains a bunch of pkgng stuff that should be broken out into the pkgng module, so that they can both be distinct, with freebsdpkg handling traditional pkg_add installs and pkgng handling all pkgng installs.

@basepi basepi modified the milestones: Helium, Hydrogen Release Feb 4, 2014
@basepi basepi modified the milestones: Approved, Helium Apr 21, 2014
@thatch45
Copy link
Contributor

Based on the package re-factor I am going to close this out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new functionality including changes to functionality and code refactors, etc.
Projects
None yet
Development

No branches or pull requests

4 participants