From ef4c6d821fe464879b1a6fc5cd1a1c457ba493fb Mon Sep 17 00:00:00 2001 From: William Petit Date: Wed, 8 Jul 2020 11:42:38 +0200 Subject: [PATCH] =?UTF-8?q?Gestion=20de=20la=20pr=C3=A9sence=20ou=20non=20?= =?UTF-8?q?d'espaces=20dans=20l'attribut=20'Source'=20du=20fichier=20debia?= =?UTF-8?q?n/control?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hooks/prebuild/debian/complete-project-db | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/prebuild/debian/complete-project-db b/hooks/prebuild/debian/complete-project-db index 64e9e2f..b2be10c 100755 --- a/hooks/prebuild/debian/complete-project-db +++ b/hooks/prebuild/debian/complete-project-db @@ -7,7 +7,7 @@ if [ ! -f debian/control ]; then exit 1 fi -package_name=$(grep -E '^Source:' debian/control | awk '{ print $2 }') +package_name=$(sed -n 's/^Source:[ \t]*\(.*\)$/\1/p' debian/control | tr -d '[:space:]') project_name=$(tamarin_db get project_name) if [ "${package_name}" != "${project_name}" ]; then