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
Vladislav
eepm
Commits
30b43e62
You need to sign in or sign up before continuing.
Commit
30b43e62
authored
1 year ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm mark showhold: add --short support for dnf
parent
2f4bee68
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
epm-mark
bin/epm-mark
+8
-3
epm-query
bin/epm-query
+5
-0
No files found.
bin/epm-mark
View file @
30b43e62
...
...
@@ -160,14 +160,19 @@ esac
case
$PMTYPE
in
apt-dpkg
)
su
docmd apt-mark showhold
"
$@
"
docmd apt-mark showhold
"
$@
"
;;
dnf-rpm
)
__dnf_assure_versionlock
sudocmd dnf versionlock list
if
[
-n
"
$short
"
]
;
then
load_helper epm-query
docmd dnf versionlock list
"
$@
"
|
sed
-e
's|\.\*$||'
|
grep
-v
" "
| filter_pkgnames_to_short
else
docmd dnf versionlock list
"
$@
"
fi
;;
zypper-rpm
)
su
docmd zypper ll
"
$@
"
docmd zypper ll
"
$@
"
;;
emerge
)
cat
/etc/portage/package.mask
...
...
This diff is collapsed.
Click to expand it.
bin/epm-query
View file @
30b43e62
...
...
@@ -338,6 +338,11 @@ is_installed()
(
quiet
=
1 __epm_query_name
"
$@
"
)
>
/dev/null 2>/dev/null
}
filter_pkgnames_to_short
()
{
local
names
=
"
$(
cat
)
"
__epm_query_shortname
$names
}
epm_query
()
{
...
...
This diff is collapsed.
Click to expand it.
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