Skip to content

Commit

Permalink
feat(pm/dpkg.sh): add Description-md5 field to debian control file
Browse files Browse the repository at this point in the history
  • Loading branch information
eatradish committed Sep 18, 2024
1 parent 4a3d84a commit efb48c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pm/dpkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ dpkgctrl() {
echo "Maintainer: $MTER"
echo "Installed-Size: $(du -s "$PKGDIR" | cut -f 1)"
echo "Description: $PKGDES"
echo "Description-md5: $(echo $PKGDES | md5sum | cut -d ' ' -f 1)"
if ((PKGESS)); then
echo "Essential: yes"
else
Expand Down Expand Up @@ -137,6 +138,8 @@ dpkgctrl_dbg() {
echo "Maintainer: $MTER"
echo "Installed-Size: $(du -s "$SYMDIR" | cut -f 1)"
echo "Description: Debug symbols for $PKGNAME"
echo "Description-md5: $(echo \"Debug symbols for $PKGNAME\" | md5sum | cut -d ' ' -f 1)"

echo "Depends: ${PKGNAME} (=$(dpkgpkgver))"
# Record last packager in control, we will switch to another variable
# name for this field to differentiate between maintainers and
Expand Down

0 comments on commit efb48c1

Please sign in to comment.