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
1
Merge Requests
1
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
62ca6594
Commit
62ca6594
authored
Dec 31, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmreqs: add showcmd for rpmquery and apt-get
parent
c3df2fbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
rpmreqs
bin/rpmreqs
+2
-0
No files found.
bin/rpmreqs
View file @
62ca6594
...
@@ -153,6 +153,7 @@ trans_rpmdeps_to_pkgname_lav()
...
@@ -153,6 +153,7 @@ trans_rpmdeps_to_pkgname_lav()
TFILE
=
$(
make_temp_file
)
TFILE
=
$(
make_temp_file
)
PKGFILES
=
PKGFILES
=
if
[
-n
"
$REQCONVLIST
"
]
;
then
if
[
-n
"
$REQCONVLIST
"
]
;
then
showcmd apt-get
install
--print-uris
...
PKGFILES
=
$(
LANG
=
C apt-get
install
--print-uris
$REQCONVLIST
2>
$TFILE
|
grep
-E
"(^Selecting|.* is already the newest version.)"
|
sed
-e
"s|^Selecting ||g"
|
sed
-e
"s| is already the newest version.||g"
|
sed
-e
"s| .*||g"
|
sort
-u
| filter_pkgname
)
||
warning
"Error return code from apt-get install"
PKGFILES
=
$(
LANG
=
C apt-get
install
--print-uris
$REQCONVLIST
2>
$TFILE
|
grep
-E
"(^Selecting|.* is already the newest version.)"
|
sed
-e
"s|^Selecting ||g"
|
sed
-e
"s| is already the newest version.||g"
|
sed
-e
"s| .*||g"
|
sort
-u
| filter_pkgname
)
||
warning
"Error return code from apt-get install"
if
grep
-q
"is a virtual package provided by"
$TFILE
;
then
if
grep
-q
"is a virtual package provided by"
$TFILE
;
then
local
INSTALLMARK
=
"
\[
Installed
\]
"
local
INSTALLMARK
=
"
\[
Installed
\]
"
...
@@ -217,6 +218,7 @@ passwdqc-control"
...
@@ -217,6 +218,7 @@ passwdqc-control"
if
[
"
$1
"
=
"-p"
]
;
then
if
[
"
$1
"
=
"-p"
]
;
then
[
-s
"
$2
"
]
||
fatal
"Missed file
$2
"
[
-s
"
$2
"
]
||
fatal
"Missed file
$2
"
fi
fi
showcmd rpmquery
--requires
"
$@
"
REQLIST
=
$(
get_rpm_package_requires
"
$@
"
)
||
fatal
"can't get primary requires"
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