Skip to content

Commit

Permalink
dpkg: append version stamp to file name
Browse files Browse the repository at this point in the history
  • Loading branch information
xtexChooser committed Aug 7, 2024
1 parent 7be5bb5 commit 120f758
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pm/dpkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,12 @@ pm_install_all() {
}

pm_build_package() {
local _file="${PKGNAME}_${PKGVER}-${PKGREL}_${DPKG_ARCH%%\/*}.deb"
local _file
if [ -n "$VERSTAMP" ]; then
_file="${PKGNAME}_${PKGVER}-${PKGREL}-${VERSTAMP}_${DPKG_ARCH%%\/*}.deb"
else
_file="${PKGNAME}_${PKGVER}-${PKGREL}_${DPKG_ARCH%%\/*}.deb"
fi
mkdir -p "$PKGDIR"/DEBIAN \
|| abdie "Failed to create DEBIAN directory for .deb metadata: $?."
cp -rl "$SRCDIR"/abscripts/* "$PKGDIR"/DEBIAN \
Expand Down

0 comments on commit 120f758

Please sign in to comment.