giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.3k stars 458 forks source link

Update build.sh to properly discover and tag DISTRIB_RELEASE on Debian testing and Debian unstable/sid releases. #2396

Closed DennisRasey closed 7 months ago

DennisRasey commented 7 months ago

build.sh does not properly discover and tag DISTRIB_RELEASE on Debian testing and Debian unstable/sid releases, resulting in the following error message when running

./build.sh deb

mv: cannot move 'cherrytree-1.0.3-Linux.deb' to 'cherrytree-1.0.3~Debiantrixie/sid_amd64.deb': No such file or directory

This is due to /etc/debian_version on Debian's testing & unstable branches not using an explicit version number, but instead using the release codename/sid

drasey@stewie:~/git/cherrytree$ cat /etc/debian_version trixie/sid

This PR is aims to resolve that by checking if /etc/debian_version includes sid, and using the release codename (trixie in my case) for DISTRIB_RELEASE.

giuspen commented 7 months ago

Thanks!