Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
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
etersoft
eepm
Commits
41cb3027
Commit
41cb3027
authored
Aug 27, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm print: use local file for query_package_field only if it has .rpm extension
parent
1de7b30f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
epm-print
bin/epm-print
+5
-3
No files found.
bin/epm-print
View file @
41cb3027
...
...
@@ -24,9 +24,11 @@ query_package_field()
{
local
FORMAT
=
"%{
$1
}
\n
"
shift
local
INSTALLED
=
"-p"
# if not file, drop -p for get from rpm base
[
-f
"
$1
"
]
||
INSTALLED
=
""
local
INSTALLED
=
""
# if a file, ad -p for get from rpm base
if
[
-f
"
$1
"
]
&&
[
"
$(
get_package_type
"
$1
"
)
"
=
"rpm"
]
;
then
INSTALLED
=
"-p"
fi
a
=
rpmquery
$INSTALLED
--queryformat
"
$FORMAT
"
"
$@
"
}
...
...
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