From: gobo72 Date: Tue, 2 Nov 2010 04:46:26 +0000 (+0000) Subject: Corrected get_pkg_name not woriking for udev X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=f41e274186ffbed8f6bdc4d44da23758c83f1bb9;p=hvlinux.git Corrected get_pkg_name not woriking for udev --- 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.