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

Added support for reinstallation and downgrades #10

Closed

Conversation

miminar
Copy link
Contributor

@miminar miminar commented Oct 2, 2014

This pull request adds support for package reinstallation and downgrades and fixes one minor issue.

Michal Minar added 3 commits October 2, 2014 09:08
Added two new transaction flags:
 * HIF_TRANSACTION_FLAG_ALLOW_REINSTALL
 * HIF_TRANSACTION_FLAG_ALLOW_DOWNGRADE

Added two new state actions:
  * HIF_STATE_ACTION_REINSTALL
  * HIF_STATE_ACTION_DOWNGRADE
Repositories on localfilesystem with just

  baseurl=file:///some/local/repo/path

in their keyfile were treated as remote repositories. This lead to a
librepo trying to download their packages to a local cache dir which
failed. This patch ensures that packages of local repositories will be
simply copied.
Dependend libraries can avoid creating their own repository loaders
when they already have a context. Having more loaders instantiated wastes
resources and causes strange behaviour.
@hughsie
Copy link
Contributor

hughsie commented Oct 31, 2014

I've pushed all three patches, with minor whitespace and style fixes to the first two. Thanks, and sorry for the delay in reviewing this.

@hughsie hughsie closed this Oct 31, 2014
@miminar
Copy link
Contributor Author

miminar commented Oct 31, 2014

Great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants