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
90eba974
Commit
90eba974
authored
May 20, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trans_rpmdeps_to_pkgname: remove get rpmdeps (do it separately)
parent
e434fd9a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
alt
share/eterbuild/functions/alt
+2
-3
test_cget_depends.sh
tests/test_cget_depends.sh
+2
-1
No files found.
share/eterbuild/functions/alt
View file @
90eba974
...
...
@@ -109,7 +109,7 @@ pkg_release_check()
# copied from aptU
get_rpmpkg_requires
()
{
rpmquery
--requires
$@
|
cut
-f1
-d
" "
|
sed
-e
"s|([A-Z].*||g"
|
sort
-u
rpmquery
--requires
$@
|
cut
-f1
-d
" "
|
sed
-e
"s|([A-Z].*||g"
|
grep
-v
"^rpmlib"
|
sort
-u
}
# Translate requires from local rpm package to package names (on local ALT Linux Sisyphus)
...
...
@@ -120,8 +120,7 @@ trans_rpmdeps_to_pkgname()
# partially copied from aptU
local
ALREADYHANDLEDRPM
=
"rpmlib.* rtld libgcc_s
\.
.* libstdc
\+\+
.* libc
\.
so.* ld-linux
\.
so.* libpthread
\.
so.* librt
\.
so.*"
local
REQLIST
REQLIST
=
$(
get_rpmpkg_requires
-p
"
$1
"
)
local
REQLIST
=
"
$@
"
REQLIST
=
$(
regexp_exclude_list
"
$ALREADYHANDLEDRPM
"
"
$REQLIST
"
)
# partially copied from aptU
...
...
tests/test_cget_depends.sh
View file @
90eba974
...
...
@@ -6,4 +6,5 @@ load_mod alt
#testfile=$(echo /var/ftp/pub/Etersoft/RX@Etersoft/testing/CentOS/6/nxclient-*.i586.rpm)
testfile
=
$(
echo
/var/ftp/pub/Etersoft/RX@Etersoft/testing/ALTLinux/Sisyphus/rx-etersoft-
*
.i586.rpm
)
trans_rpmdeps_to_pkgname
$testfile
REQLIST
=
"
$(
get_rpmpkg_requires
-p
"
$testfile
"
)
"
trans_rpmdeps_to_pkgname
$REQLIST
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