From 439e3b21da030e64e912591b5c069ccfc31a1e66 Mon Sep 17 00:00:00 2001 From: Lucas Kanashiro Date: Fri, 3 Dec 2021 19:32:55 -0300 Subject: [PATCH] d/rules: correctly detect supported ruby versions with dh_ruby --- debian/rules | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index 14be9c1..c4e2d70 100755 --- a/debian/rules +++ b/debian/rules @@ -27,8 +27,7 @@ include /usr/share/dpkg/pkg-info.mk PYTHON_VERSIONS := $(shell py3versions --installed) -RUBY_VERSIONS := $(shell find /usr/bin/ -name 'ruby[12]*' \ - | xargs -n1 readlink -f | xargs -n1 basename) +RUBY_VERSIONS := $(shell dh_ruby --print-supported) # Determine the number of builds needed due to script language version # variants -- GitLab