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
Accept "0" as an epoch #17
Conversation
In Debian an zero epoch is actually valid; e.g. woff-tools actually has a zero epoch (0:2009.10.04-2). Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
It is also a valid Epoch in RPM too. |
This is about the way libsolv normalizes the epoch-version-release. So stripping a zero epoch is correct. What exactly are you trying to solve? |
It is not correct since empty epoch doesn't equal to zero epoch.
|
To clarify: without this change, when |
The reason for this is that libsolv's repo_add_deb() does not normalize the epoch as well. Hmm. The debian packaging guide says that an empty epoch is the same as a zero epoch, so it somewhat makes sense to normalize. But I'm not a debian expert. Anyway either perl-BSSolv or libsolv needs to change. |
This is correct. From a solution solving perspective, both RPM and Debian package management expect this. |
Well, it is the same (when versions are compared), but as you pointed out, it’s not the same when it comes to the file name comparison. If you drop it in one place, but then expect it in the file name, you won’t get a match. |
File names should be fetched by getting the basename from the URL in the repository metadata, not by constructing strings based on NEVRA. |
Probably. But apparently that’s not what happens, for whatever reason. |
That's a bug somewhere in OBS then. :) |
Unrelated: I keep misreading your username as Conan-Sudo 😃 |
The filename is not the problem. The OBS repo server fetches the binary correctly, but then a bit later the scheduler does not identify the binary as the evr is different, so it gets deleted again. |
The repo parsers in the obs-build package also leave the epoch for debian metadata. So I think the easiest way forward is to not normalize and accept the pull request. |
@mlschroe, thanks, I think was misremembering the exact nature of the issue. And thanks for merging. |
Sorry that this took so long. I somehow missed that you opened this pull request. |
In Debian an zero epoch is actually valid; e.g. woff-tools actually has a zero epoch (0:2009.10.04-2).