Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Commit 92ac31e

Browse files
mairasclaude
andauthored
fix(ci): use PACKAGE_NAME from workflow or debian/control (#46)
The generate-changelog.sh script had a hardcoded package name "halpi2-daemon" instead of using the PACKAGE_NAME environment variable from the workflow or reading it from debian/control. This caused the generated debian/changelog to have a different package name than debian/control, resulting in the error: dpkg-source: error: source package has two conflicting values 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent 186a57f commit 92ac31e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/scripts/generate-changelog.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ if [ -z "$UPSTREAM" ] || [ -z "$REVISION" ]; then
3131
exit 1
3232
fi
3333

34-
# Package name
35-
PACKAGE_NAME="halpi2-daemon"
34+
# Package name - use PACKAGE_NAME env var (from workflow) or read from debian/control
35+
if [ -z "${PACKAGE_NAME:-}" ]; then
36+
PACKAGE_NAME=$(grep "^Source:" debian/control | cut -d: -f2 | tr -d ' ')
37+
fi
3638

3739
# Debian version format: upstream-revision
3840
DEBIAN_VERSION="${UPSTREAM}-${REVISION}"

0 commit comments

Comments
 (0)