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
9ffb65bf
Commit
9ffb65bf
authored
Oct 29, 2024
by
Roman Alifanov
Committed by
Vitaly Lipatov
Nov 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm [remove, install]: new flag: manual_requires
parent
d302482f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
epm
bin/epm
+5
-1
epm-install
bin/epm-install
+5
-0
epm-remove
bin/epm-remove
+5
-0
No files found.
bin/epm
View file @
9ffb65bf
...
...
@@ -147,6 +147,7 @@ force_yes=
skip_installed
=
skip_missed
=
show_command_only
=
manual_requires
=
epm_cmd
=
warmup
=
pkg_files
=
...
...
@@ -597,6 +598,9 @@ check_option()
--force-overwrite
)
# HELPOPT: force overwrite one package's file with another's file
force_overwrite
=
"--force-overwrite"
;;
--manual-requires
)
# HELPOPT: includes all package dependencies in the install/uninstall list
manual_requires
=
"--manual-requires"
;;
-
*
)
[
-n
"
$direct_args
"
]
&&
return
1
[
-n
"
$pkg_options
"
]
&&
pkg_options
=
"
$pkg_options
$1
"
||
pkg_options
=
"
$1
"
...
...
@@ -665,7 +669,7 @@ if [ -n "$quiet" ] ; then
fi
# fill
export
EPM_OPTIONS
=
"
$nodeps
$force
$verbose
$debug
$quiet
$interactive
$non_interactive
$save_only
$download_only
$force_overwrite
"
export
EPM_OPTIONS
=
"
$nodeps
$force
$verbose
$debug
$quiet
$interactive
$non_interactive
$save_only
$download_only
$force_overwrite
$manual_requires
"
# if input is not console and run script from file, get pkgs from stdin too
if
[
!
-n
"
$inscript
"
]
&&
[
-p
/dev/stdin
]
&&
[
"
$EPMMODE
"
!=
"pipe"
]
;
then
...
...
bin/epm-install
View file @
9ffb65bf
...
...
@@ -22,6 +22,7 @@ load_helper epm-sh-install
load_helper epm-query
load_helper epm-assure
load_helper epm-repack
load_helper epm-requires
load_helper epm-check_updated_repo
load_helper epm-sh-warmup
...
...
@@ -453,6 +454,10 @@ epm_install()
fi
fi
if
[
-n
"
$manual_requires
"
]
;
then
local
pkg_names
=
"
$pkg_names
$(
short
=
1 epm_requires
$pkg_names
)
"
fi
if
[
-n
"
$show_command_only
"
]
;
then
# TODO: handle pkg_urls too
load_helper epm-install-print-command
...
...
bin/epm-remove
View file @
9ffb65bf
...
...
@@ -20,6 +20,7 @@
load_helper epm-sh-altlinux
load_helper epm-query
load_helper epm-print
load_helper epm-requires
load_helper epm-sh-warmup
load_helper epm-sh-install
...
...
@@ -308,6 +309,10 @@ epm_remove()
fi
fi
if
[
-n
"
$manual_requires
"
]
;
then
local
pkg_names
=
"
$pkg_names
$(
short
=
1 epm_requires
$pkg_names
)
"
fi
# TODO: fix pkg_names override
# get full package name(s) from the package file(s)
[
-n
"
$pkg_files
"
]
&&
pkg_names
=
"
$pkg_names
$(
epm query
$pkg_files
)
"
...
...
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