Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
502cb4b8
Commit
502cb4b8
authored
Aug 30, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpm: fix get_pkgname_from_filename
parent
4de6146d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
rpm
share/eterbuild/functions/rpm
+7
-0
get_packagename.sh
tests/get_packagename.sh
+3
-2
No files found.
share/eterbuild/functions/rpm
View file @
502cb4b8
...
...
@@ -144,6 +144,13 @@ get_pkgname_from_filename()
return
fi
# libgnustep-opal-r37181-alt3.svn20131001
local
SR
=
$(
echo
$FN
|
sed
-e
"s|
\(
.*
\)
-[a-zA-Z][0-9][0-9][0-9a-zA-Z
\.
]*-[a-z]*[0-9][0-9
\.
a-zA-Z]*
\.
[a-z0-9_]*.*
$|
\1
|g"
)
if
[
"
$SR
"
!=
"
$FN
"
]
;
then
echo
$SR
return
fi
echo
${
FN
/[-_][0-9]*/
}
}
...
...
tests/get_packagename.sh
View file @
502cb4b8
...
...
@@ -20,4 +20,6 @@ check_pkg pkg123-1.0.spec pkg123
check_pkg pkg123[_-]1.0.spec pkg123
check_pkg pkg
*
.spec pkg
check_pkg libpq5.2-9.0eter-9.0.4-alt14.i586.rpm libpq5.2-9.0eter
check_pkg postgre-etersoft9.0_9.0.4-eter14ubuntu_i386.deb postgre-etersoft9.0
\ No newline at end of file
check_pkg postgre-etersoft9.0_9.0.4-eter14ubuntu_i386.deb postgre-etersoft9.0
check_pkg libgnustep-opal-r37181-alt3.svn20131001 libgnustep-opal
check_pkg libopencv2.4-2.4.13.3-alt2.x86_64 libopencv2.4
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment