-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
aptly repo include reports an error when used for a backports distribution #278
Comments
.changes file references orig.tar.gz:
|
Hello, |
Hello, The same issue occurs with a new package release of a same upstream version: by default, dpkg buildpackage does not ship the orig.tar.gz file again. For instance, uploading oar_2.5.5
See the second and third files of https://gist.github.com/npf/64a7432e6ae04e9fa0c6 |
This sounds like a bug in aptly, but don't have time right now to investigate |
Section 5.6.21 of https://www.debian.org/doc/debian-policy/ch-controlfields.html, gives some specifications. Hope this could help. |
Hello, I see that issue #370 is closed, however, for the case I reported here, I'd like to mention that I still see the problem with aptly 1.0.1:
First I include packages for sid (no error):
Then, including some backports, I get the error at the end:
Hope this is useful. |
Thanks for bringing this up, @npf. This has never been fixed, pushing to 1.2.0 |
Does it work if you force the inclusion of the original source by passing |
Hi @BABILEN , However, in my opinion, this is only a workaround, right ? This does not close the issue ? aptly should be able to handle the cases where the original source is not included, which is the default behavior for backports, but also if not an initial package release of an upstream version of a software, e.g. software-x.y-r with r > 1, from what I understand ? |
The assumption is basically that the orig source is included if you upload a new package and, conversely, that you would only skip it if you have uploaded it previously (e.g. when uploading |
@BABILEN : Yep agreed. Unless I'm mistaken the error appears even though the orig source was indeed uploaded previously with |
So basically when searching for matching files, we should expand our scope to aptly's internal package pool - if matching file is there, we can assume safely we can use it. If file is missing, we should give back error (like today). Does that make sense? |
@smira: That sounds about right. You essentially want to make sure that you can find the orig source tarball somewhere in the repo, but not enforce that it has to be included in the current upload if it is present already. |
Sometimes source packages reference files already present in the pool. Allow for those file to be omitted when importing packages either via `repo add` or `repo include`. If file is missing, aptly would make an attempt to look up file in the package pool (by checksum) and use it. Fixes: #278
Should be fixed now, fix available in nightly build |
Cheers! |
Thanks for fixing! |
The changes file for a backported Debian packages (e.g. suffixed with ~bpo8+1) does not include a references for the orig.tar.gz tarball, nor is the file pushed by dput.
However, aptly tries to import the file.
Typical error output:
See the related changes files here: https://gist.github.com/npf/64a7432e6ae04e9fa0c6
The text was updated successfully, but these errors were encountered: