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
12cd6a7e
Commit
12cd6a7e
authored
Oct 28, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-upgrade: don't allow unknown options (ALT bug 41225)
parent
e70264cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
epm
bin/epm
+1
-0
epm-upgrade
bin/epm-upgrade
+5
-0
No files found.
bin/epm
View file @
12cd6a7e
...
...
@@ -470,6 +470,7 @@ check_filenames()
pkg_urls
=
"
$pkg_urls
$opt
"
else
has_space
"
$opt
"
&&
warning
"There are space(s) in package name '
$opt
', it is not supported. Skipped."
&&
continue
# TODO: don't add unknown options (like -y, --unknown) to pkg_names
pkg_names
=
"
$pkg_names
$opt
"
fi
quoted_args
=
"
$quoted_args
\"
$opt
\"
"
...
...
bin/epm-upgrade
View file @
12cd6a7e
...
...
@@ -65,6 +65,11 @@ epm_upgrade()
(
pkg_files
=
$pkg_files
force
=
"
$force
-F"
epm_install
)
return
elif
[
-n
"
$pkg_names
"
]
;
then
# hack for https://bugzilla.altlinux.org/41225
case
"
$pkg_names
"
in
-
*
)
fatal
"Option
$pkg_names
is not allowed here"
esac
load_helper epm-install
(
pkg_names
=
$(
get_only_installed_packages
$pkg_names
)
epm_install
)
return
...
...
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