Skip to content

fix(ci): account for cargo-deb's -1 default revision#84

Merged
mairas merged 1 commit intomainfrom
fix/cargo-deb-revision-suffix
Nov 22, 2025
Merged

fix(ci): account for cargo-deb's -1 default revision#84
mairas merged 1 commit intomainfrom
fix/cargo-deb-revision-suffix

Conversation

@mairas
Copy link
Contributor

@mairas mairas commented Nov 22, 2025

Summary

Fix the package rename script to handle cargo-deb's default -1 revision suffix.

Problem

cargo-deb produces packages with -1 as the default Debian revision:

halpi2-rust-daemon_5.0.0-1_arm64.deb

The script was looking for halpi2-rust-daemon_5.0.0_arm64.deb (without the -1).

Solution

Update the script to look for the cargo-deb format with -1 suffix:

OLD_NAME="${PACKAGE_NAME}_${UPSTREAM_VERSION}-1_${ARCH}.deb"

This will find halpi2-rust-daemon_5.0.0-1_arm64.deb and rename it to halpi2-rust-daemon_5.0.0-3_arm64+trixie+hatlabs.deb.

Test plan

  • CI passes - package should be found and renamed correctly

🤖 Generated with Claude Code

cargo-deb produces packages with -1 as the default Debian revision:
  halpi2-rust-daemon_5.0.0-1_arm64.deb

The script now looks for this format and renames it to the calculated
revision number for the APT repository.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@mairas mairas merged commit 696974d into main Nov 22, 2025
1 check passed
@mairas mairas deleted the fix/cargo-deb-revision-suffix branch November 22, 2025 11:32
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.

1 participant