projects
/
hvlinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d285862
)
Corrected get_pkg_name not woriking for udev
author
gobo72
<gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Tue, 2 Nov 2010 04:46:26 +0000
(
04:46
+0000)
committer
gobo72
<gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Tue, 2 Nov 2010 04:46:26 +0000
(
04:46
+0000)
functions
patch
|
blob
|
history
diff --git
a/functions
b/functions
index
10c5693
..
9a6496f
100644
(file)
--- 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.