-
Notifications
You must be signed in to change notification settings - Fork 90
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
Make offline transactions work with local rpm files #1586
Conversation
We were not able to find or create Copr project
Unless the HTTP status code above is >= 500, please check your configuration for:
|
I have created a couple of tests: rpm-software-management/ci-dnf-stack#1529 |
There are some failing CI tests. I think the problem is with normal repo packages that are already downloaded in cache (using They don't have the repo type |
By default the transaction during the `download()` call does not copy local packages to the destination directory. These packages are used directly from their original location. For some use-cases (like offline transaction involving the command line repo packages) we need to copy them to the package cache.
Local packages are not passed to librepo for download, but directly copied to the destination directory.
Execute callbacks when copying local files to the destination during the download() method.
Thanks! The |
f30fd65
to
d78de9c
Compare
Thanks 👍 |
Offline transactions now copy also local (command line repo) packages to the
cache.
Changes:
f30fd65 (Marek Blaha, 2 hours ago)
dnf5: Offline transactions work with local rpm files
9ab4e87 (Marek Blaha, 2 hours ago)
package_downloader: Handle local files
Local packages are not passed to librepo for download, but directly copied
to the destination directory.
74e0177 (Marek Blaha, 7 hours ago)
transaction: Flag whether download local packages
By default the transaction during the
download()
call does not copy localpackages to the destination directory. These packages are used directly
from their original location. For some use-cases (like offline transaction
involving the command line repo packages) we need to copy them to the
package cache.
Resolves: #1583