From f41e274186ffbed8f6bdc4d44da23758c83f1bb9 Mon Sep 17 00:00:00 2001 From: gobo72 Date: Tue, 2 Nov 2010 04:46:26 +0000 Subject: [PATCH] Corrected get_pkg_name not woriking for udev --- functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions b/functions index 10c5693..9a6496f 100644 --- a/functions +++ b/functions @@ -130,7 +130,8 @@ get_pkg_name() return 1 fi - echo ${1} | sed "s!^\(.*\)-[0-9]*\.[0-9]*.*!\1!g" + # \1 matches anything followed by a dash and a number + echo ${1} | sed "s!^\(.*\)-[0-9].*!\1!g" } # Saves the content of CFLAGS and CXXFLAGS environment variables. -- 2.20.1