diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2021-12-11 14:58:20 -0500 |
|---|---|---|
| committer | Joshua M. Boniface <joshua@boniface.me> | 2021-12-11 14:58:20 -0500 |
| commit | 3223ef0e49030ec5470cb73c85ba8f978946a49b (patch) | |
| tree | 1fa13aaa3ca5d98421ac2786e5030cc30b6743f5 /bump_version | |
| parent | 3797879d05ae3c1d17462593c2f3b04f94eccfae (diff) | |
Properly handle the -1 tag
Avoids breaking Fedora/CentOS while preserving Debian.
Diffstat (limited to 'bump_version')
| -rwxr-xr-x | bump_version | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bump_version b/bump_version index 1fcf7197c..3c5cb7897 100755 --- a/bump_version +++ b/bump_version @@ -73,8 +73,10 @@ done if [[ ${new_version} == *"-"* ]]; then new_version_pkg="$( sed 's/-/~/g' <<<"${new_version}" )" + new_version_deb_sup="" else - new_version_pkg="${new_version}-1" + new_version_pkg="${new_version}" + new_version_deb_sup="-1" fi # Update the metapackage equivs file @@ -85,7 +87,7 @@ sed -i "s/${old_version_sed}/${new_version_pkg}/g" ${debian_equivs_file} debian_changelog_file="debian/changelog" debian_changelog_temp="$( mktemp )" # Create new temp file with our changelog -echo -e "jellyfin-server (${new_version_pkg}) unstable; urgency=medium +echo -e "jellyfin-server (${new_version_pkg}${new_version_deb_sup}) unstable; urgency=medium * New upstream version ${new_version}; release changelog at https://github.com/jellyfin/jellyfin/releases/tag/v${new_version} |
