Skip to content

fix(dpkg): handle version type conversion#5

Merged
Urist-McGit merged 1 commit intosiemens:mainfrom
fmoessbauer:fm/fix-package-version
Sep 8, 2025
Merged

fix(dpkg): handle version type conversion#5
Urist-McGit merged 1 commit intosiemens:mainfrom
fmoessbauer:fm/fix-package-version

Conversation

@fmoessbauer
Copy link
Member

The SourcePackage and BinaryPackage version must be converted to a deb822 version type (even if it is provided as string) to later be able to access parts of the version (e.g. the epoch / source version / debian revision).

We fix this by converting the version in the respective constructor. This avoid having to fix all the callers and also avoid exposing the dep822 type to all downstream users. When passing the version of a package to a downstream component, we further need to ensure we convert it to its string representation first.

Fixes: 958c97d ("Initial commit")

@Urist-McGit
Copy link
Collaborator

LGTM. I just noticed our CI did not run properly for PRs. Can you please rebase so the pipelines actually run?

The SourcePackage and BinaryPackage version must be converted to a
deb822 version type (even if it is provided as string) to later be able
to access parts of the version (e.g. the epoch / source version / debian
revision).

We fix this by converting the version in the respective constructor.
This avoid having to fix all the callers and also avoid exposing the
dep822 type to all downstream users. When passing the version of a
package to a downstream component, we further need to ensure we convert
it to its string representation first.

Fixes: 958c97d ("Initial commit")
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
@fmoessbauer fmoessbauer force-pushed the fm/fix-package-version branch from dc5d510 to 35f3584 Compare September 8, 2025 12:00
@Urist-McGit Urist-McGit merged commit 8fb8756 into siemens:main Sep 8, 2025
3 checks passed
@fmoessbauer fmoessbauer deleted the fm/fix-package-version branch September 8, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants