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
eeb379f9
Commit
eeb379f9
authored
Mar 10, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix drop_extensions for x86_64 and improve test for it
parent
f07ca34c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
rpm
share/eterbuild/functions/rpm
+2
-2
test_get_bin.sh
tests/test_get_bin.sh
+5
-2
No files found.
share/eterbuild/functions/rpm
View file @
eeb379f9
...
...
@@ -122,8 +122,8 @@ get_binpkg_list()
drop_pkg_extensions
()
{
for
i
in
$@
;
do
echo
-n
"
$(
basename
$i
)
"
|
sed
-e
"s|
\.
[a-z0-9]*
\.
rpm||g"
done
echo
-n
"
$(
basename
$i
)
"
|
sed
-e
"s|
\.
[a-z
_
0-9]*
\.
rpm||g"
done
| filter_strip_spaces
}
# TODO: add get_update_repo_command
...
...
tests/test_get_bin.sh
View file @
eeb379f9
...
...
@@ -3,10 +3,13 @@
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod rpm hasher
MENV
=
SS
MENVARG
=
$1
test
-n
"
$MENVARG
"
||
MENVARG
=
-SS
set_hasherdir
for
i
in
`
ls
-1
$HASHERDIR
/repo/SRPMS.hasher
`
;
do
echo
"get for
$i
:"
get_binpkg_list
$HASHERDIR
/repo/
$DEFAULTARCH
/RPMS.hasher
$(
basename
$i
)
LISTNAMES
=
`
get_binpkg_list
$HASHERDIR
/repo/
$DEFAULTARCH
/RPMS.hasher
$(
basename
$i
)
`
echo
$LISTNAMES
echo
"without ext:
$(
drop_pkg_extensions
$LISTNAMES
)
"
done
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