Skip to content

Commit

Permalink
patch exact pylon version for binary depedendency
Browse files Browse the repository at this point in the history
  • Loading branch information
thiesmoeller committed Dec 6, 2024
1 parent db84fdc commit 98b9310
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tools/patch_deb_changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,19 @@ mv "$temp_file" "$changelog_file"

echo "Changelog updated successfully to version ${new_version}"

# prepare patching the control file

# Check if pylon package is installed
if ! dpkg -s pylon &> /dev/null; then
echo "Error: pylon package is not installed" >&2
exit 1
fi

# Get the exact Pylon package version
PYLON_VERSION=$(dpkg -s pylon | grep Version | cut -d' ' -f2)

# Modify the Depends lines to include exact Pylon version
sed -i "s/Depends: pylon,/Depends: pylon (= $PYLON_VERSION),/" debian/control

echo "Pylon dependency set to ${PYLON_VERSION}"

0 comments on commit 98b9310

Please sign in to comment.