Finalise installation X.org, reste a tester...
[hvlinux.git] / functions
index 4f58faf..8ee7dd0 100644 (file)
--- a/functions
+++ b/functions
@@ -99,7 +99,7 @@ get_pkg_name()
        return 1
     fi
 
-    echo ${1} | sed "s!^\(.*\)-.*!\1!g"
+    echo ${1} | sed "s!^\(.*\)-[0-9]*\.[0-9]*.*!\1!g"
 }
 
 # Saves the content of CFLAGS and CXXFLAGS environment variables.