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
f6d2c8ab
You need to sign in or sign up before continuing.
Commit
f6d2c8ab
authored
Aug 31, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmreqs: add checking for file existance
parent
3423a6ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
rpmreqs
bin/rpmreqs
+5
-2
No files found.
bin/rpmreqs
View file @
f6d2c8ab
...
@@ -19,7 +19,7 @@ fi
...
@@ -19,7 +19,7 @@ fi
# moved from aptU
# moved from aptU
get_rpm_package_requires
()
get_rpm_package_requires
()
{
{
rpmquery
--requires
$@
|
cut
-f1
-d
" "
|
sed
-e
"s|
\(
^lib.*
\)
(.*[0-9])|
\1
|g"
|
grep
-v
"^rpmlib"
|
sort
-u
(
rpmquery
--requires
"
$@
"
||
return
)
|
cut
-f1
-d
" "
|
sed
-e
"s|
\(
^lib.*
\)
(.*[0-9])|
\1
|g"
|
grep
-v
"^rpmlib"
|
sort
-u
}
}
filter_pkgname
()
filter_pkgname
()
...
@@ -203,6 +203,9 @@ passwdqc-control"
...
@@ -203,6 +203,9 @@ passwdqc-control"
estrlist union
$REQLIST
| estrlist list -
estrlist union
$REQLIST
| estrlist list -
}
}
REQLIST
=
$(
get_rpm_package_requires
$@
)
||
fatal
"can't get primary requires"
if
[
"
$1
"
=
"-p"
]
;
then
[
-s
"
$2
"
]
||
fatal
"Missed file
$2
"
fi
REQLIST
=
$(
get_rpm_package_requires
"
$@
"
)
||
fatal
"can't get primary requires"
trans_rpmdeps_to_pkgname_lav
$REQLIST
trans_rpmdeps_to_pkgname_lav
$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