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
8e5efef9
Commit
8e5efef9
authored
Feb 05, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-print: improve print pkgsourcename
parent
926bde34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
epm-print
bin/epm-print
+25
-2
No files found.
bin/epm-print
View file @
8e5efef9
#!/bin/sh
#!/bin/sh
#
#
# Copyright (C) 2015, 2016, 2018 Etersoft
# Copyright (C) 2015, 2016, 2018
, 2020
Etersoft
# Copyright (C) 2008, 2015, 2016, 2018 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2008, 2015, 2016, 2018
, 2020
Vitaly Lipatov <lav@etersoft.ru>
#
#
# This program is free software: you can redistribute it and/or modify
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# it under the terms of the GNU Affero General Public License as published by
...
@@ -92,6 +92,29 @@ print_specname()
...
@@ -92,6 +92,29 @@ print_specname()
print_srcpkgname
()
print_srcpkgname
()
{
{
if
[
-n
"
$FNFLAG
"
]
;
then
query_package_field sourcerpm
"
$@
"
return
fi
# if PKFLAG
case
$PMTYPE
in
apt-dpkg
)
fatal
"Unknown command for get source package name via dpkg"
;;
urpm-rpm
)
docmd urpmq
--sourcerpm
"
$@
"
return
;;
dnf-rpm
)
showcmd dnf repoquery
--qf
'%{SOURCERPM}'
"
$@
"
a
=
dnf repoquery
--qf
'%{SOURCERPM}'
"
$@
"
return
;;
esac
# FIXME: only for installed rpm packages
query_package_field sourcerpm
"
$@
"
query_package_field sourcerpm
"
$@
"
}
}
...
...
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