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
538ece38
Commit
538ece38
authored
Apr 06, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm whatdepends: separate ALT case
parent
9253348f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
+21
-8
epm-whatdepends
bin/epm-whatdepends
+21
-8
No files found.
bin/epm-whatdepends
View file @
538ece38
#!/bin/sh
#
# Copyright (C) 2013, 2016, 2018 Etersoft
# Copyright (C) 2013, 2016, 2018 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2013, 2016, 2018
, 2024
Etersoft
# Copyright (C) 2013, 2016, 2018
, 2024
Vitaly Lipatov <lav@etersoft.ru>
#
# 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
...
...
@@ -24,13 +24,13 @@ load_helper epm-print
epm_whatdepends
()
{
local
CMD
[
-n
"
$pkg_files
"
]
&&
fatal
"whatdepends does not handle files"
[
-n
"
$pkg_names
"
]
||
fatal
"whatdepends: package name is missed"
local
pkg
=
$(
print_name
$pkg_names
)
local
pkg
case
$BASEDISTRNAME
in
"alt"
)
[
-n
"
$@
"
]
||
fatal
"Missed package name or some provides"
pkg
=
"
$(
print_name
"
$@
"
)
"
# by package name
case
$PMTYPE
in
apt-rpm
)
if
[
-z
"
$verbose
"
]
;
then
showcmd apt-cache whatdepends
$pkg
if
[
-n
"
$short
"
]
;
then
...
...
@@ -44,6 +44,19 @@ case $PMTYPE in
return
fi
CMD
=
"apt-cache whatdepends"
docmd
$CMD
$pkg
return
;;
esac
[
-n
"
$pkg_files
"
]
&&
fatal
"whatdepends does not handle files"
[
-n
"
$pkg_names
"
]
||
fatal
"whatdepends: package name is missed"
pkg
=
"
$(
print_name
$pkg_names
)
"
# by package name
case
$PMTYPE
in
apt-rpm
)
CMD
=
"apt-cache whatdepends"
;;
apt-dpkg|aptitude-dpkg
)
CMD
=
"apt-cache rdepends"
...
...
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