Skip to content

Commit 83dfc73

Browse files
alt-graphFinii
andcommitted
Fix check_control script to preserve "gul17-dev" package name
[why] The previous sed command replaced gul17-dev by something like gul17-25-3-0. [how] Improve the regex. Co-authored-by: Fini Jastrow <ulf.fini.jastrow@desy.de> Signed-off-by: Lars Froehlich <lars.froehlich@desy.de>
1 parent f759f86 commit 83dfc73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

debian/check_control

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#
99
# In both cases you probably want to commit the changes this script did.
1010

11+
# Version 18.03.2025 (fix sed command to protect dev package name in control file (GUL only))
1112
# Version 03.03.2025 (exclude suffix from package name (GUL only))
1213
# Version 02.03.2025 (changelog check more robust)
1314
# Version 19.02.2025 (fix sed command)
@@ -33,7 +34,7 @@ LIBNO=$(echo "${VERSION}" | sed -E "s/([0-9]+\.[0-9]+\.[0-9]+).*/\1/;s/\./-/g")
3334
LIBNAME=$(grep "^Source:" debian/control | sed 's/Source: *//;s/-[0-9].*$//')
3435

3536
# Check version number in control file
36-
sed -i -e "s/${LIBNAME}-[^ ]*/${LIBNAME}-${LIBNO}/g" debian/control
37+
sed -i -e "s/${LIBNAME}-[-0-9]\+/${LIBNAME}-${LIBNO}/g" debian/control
3738

3839
# If LIBNO and version in debian/changelog differs: update
3940
if ! head -n 1 debian/changelog | grep "${LIBNAME}-${LIBNO}" | grep "\(${VERSION}\)" ; then

0 commit comments

Comments
 (0)