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

metadata sharing #36

Open
cgwalters opened this issue Dec 16, 2014 · 1 comment
Open

metadata sharing #36

cgwalters opened this issue Dec 16, 2014 · 1 comment
Labels

Comments

@cgwalters
Copy link
Contributor

There are multiple programs which consume librepo, such as PackageKit, dnf, and others.

However, there's no easy mechanism for these programs to share repository metadata. Two possible options:

  • Define a shared directory /var/cache/librepo with rules for access (e.g. PackageKit/libhif style atomic swap)
  • Have each program look in the other's directories for newer files (e.g. PackageKit looks at /var/cache/dnf, dnf looks at /var/cache/PackageKit
  • Create a higher level library shared between the programs

Other options?

@hughsie
Copy link
Contributor

hughsie commented Dec 16, 2014

I think a KISS solution would work here; i.e. just get librepo to look for local files in other places before re-downloading them. It would be a very small list of places to look, and 3 stat's + hardlink would be much cheaper and faster than downloading again and again.

@dmach dmach added the dnf5 label Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants