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
Иван Мажукин
eepm
Commits
ba4b18fc
Commit
ba4b18fc
authored
Feb 07, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm mark: resolve virtual packages before marking
parent
ebdad28f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
epm-mark
bin/epm-mark
+29
-0
No files found.
bin/epm-mark
View file @
ba4b18fc
...
...
@@ -17,6 +17,15 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
__epm_mark_resolve
()
{
local
i pkg
for
i
in
"
$@
"
;
do
pkg
=
"
$(
epm query
--short
"
$i
"
2>/dev/null
)
"
||
{
warning
"Package '
$i
' is not installed"
;
continue
;
}
echo
"
$pkg
"
done
}
__alt_mark_hold_package
()
{
local
pkg
=
"
$1
"
...
...
@@ -89,6 +98,11 @@ case $BASEDISTRNAME in
;;
esac
local
resolved
resolved
=
"
$(
__epm_mark_resolve
"
$@
"
)
"
||
return
1
[
-n
"
$resolved
"
]
||
return
1
set
--
$resolved
case
$PMTYPE
in
apt-dpkg
)
sudocmd apt-mark hold
"
$@
"
...
...
@@ -124,6 +138,11 @@ case $BASEDISTRNAME in
;;
esac
local
resolved
resolved
=
"
$(
__epm_mark_resolve
"
$@
"
)
"
||
return
1
[
-n
"
$resolved
"
]
||
return
1
set
--
$resolved
case
$PMTYPE
in
apt-dpkg
)
sudocmd apt-mark unhold
"
$@
"
...
...
@@ -212,6 +231,11 @@ epm_mark_showhold | grep -q "^$1$"
epm_mark_auto
()
{
local
resolved
resolved
=
"
$(
__epm_mark_resolve
"
$@
"
)
"
||
return
1
[
-n
"
$resolved
"
]
||
return
1
set
--
$resolved
case
$BASEDISTRNAME
in
"alt"
)
sudocmd apt-mark auto
"
$@
"
...
...
@@ -246,6 +270,11 @@ esac
epm_mark_manual
()
{
local
resolved
resolved
=
"
$(
__epm_mark_resolve
"
$@
"
)
"
||
return
1
[
-n
"
$resolved
"
]
||
return
1
set
--
$resolved
case
$BASEDISTRNAME
in
"alt"
)
sudocmd apt-mark manual
"
$@
"
...
...
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