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

using xml:base with microdnf and packagekit #833

Merged
merged 2 commits into from Nov 23, 2019

Conversation

kontura
Copy link
Contributor

@kontura kontura commented Nov 1, 2019

*
* Returns: %TRUE if the pkg is a pkg on local or media filesystem
*
* Since: 0.37.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please bump the versions here, since 0.37.2 was already released...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.

…865)

Repository can have remote and local packages at the same time using
xml:base, we have to ask the pkg if it is local.

The package needs to have specified repository otherwise we cannot tell
with certainty if it is local or remote.

https://bugzilla.redhat.com/show_bug.cgi?id=1734350
https://bugzilla.redhat.com/show_bug.cgi?id=1717865
Repos packages attribute is solely used for path to packages cache, path
to packages of a local repository is calculated using repos attribute
location anyway.

https://bugzilla.redhat.com/show_bug.cgi?id=1734350
https://bugzilla.redhat.com/show_bug.cgi?id=1717865
@kontura
Copy link
Contributor Author

kontura commented Nov 21, 2019

I managed to simplify the change. With this approach there is no need for a new attribute for packages cache or 2 new methods for controlling it.
It also better preserves the meaning of already present API functions.

@packit-as-a-service
Copy link

Congratulations! The build has finished successfully. 🍾

You can install the built RPMs by following these steps:

  • sudo yum install -y dnf-plugins-core on RHEL 8
  • sudo dnf install -y dnf-plugins-core on Fedora
  • dnf copr enable packit/rpm-software-management-libdnf-833
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

@Conan-Kudo
Copy link
Member

@kontura So this is ready for review now?

@kontura
Copy link
Contributor Author

kontura commented Nov 22, 2019

ah, sorry, yes I think it is 👍

@Conan-Kudo
Copy link
Member

@rh-atomic-bot r+

@rh-atomic-bot
Copy link

📌 Commit 394edbb has been approved by Conan-Kudo

rh-atomic-bot pushed a commit that referenced this pull request Nov 22, 2019
…865)

Repository can have remote and local packages at the same time using
xml:base, we have to ask the pkg if it is local.

The package needs to have specified repository otherwise we cannot tell
with certainty if it is local or remote.

https://bugzilla.redhat.com/show_bug.cgi?id=1734350
https://bugzilla.redhat.com/show_bug.cgi?id=1717865

Closes: #833
Approved by: Conan-Kudo
rh-atomic-bot pushed a commit that referenced this pull request Nov 22, 2019
Repos packages attribute is solely used for path to packages cache, path
to packages of a local repository is calculated using repos attribute
location anyway.

https://bugzilla.redhat.com/show_bug.cgi?id=1734350
https://bugzilla.redhat.com/show_bug.cgi?id=1717865

Closes: #833
Approved by: Conan-Kudo
@rh-atomic-bot
Copy link

⌛ Testing commit 394edbb with merge dc59923...

@rh-atomic-bot
Copy link

💥 Test timed out

@kontura
Copy link
Contributor Author

kontura commented Nov 23, 2019

Since the changes have been approved and the tests pass locally I am merging this.

@kontura kontura merged commit d159689 into rpm-software-management:master Nov 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants