Commit ae010808 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: add unknown options to pkg_options

parent 3054c897
...@@ -127,6 +127,7 @@ pkg_files= ...@@ -127,6 +127,7 @@ pkg_files=
pkg_dirs= pkg_dirs=
pkg_names= pkg_names=
pkg_urls= pkg_urls=
pkg_options=
quoted_args= quoted_args=
direct_args= direct_args=
...@@ -532,6 +533,10 @@ check_option() ...@@ -532,6 +533,10 @@ check_option()
--force-yes) # HELPOPT: force yes in a danger cases (f.i., during release upgrade) --force-yes) # HELPOPT: force yes in a danger cases (f.i., during release upgrade)
force_yes="--force-yes" force_yes="--force-yes"
;; ;;
-*)
[ -n "$direct_args" ] && return 1
[ -n "$pkg_options" ] && pkg_options="$pkg_options $1" || pkg_options="$1"
;;
*) *)
return 1 return 1
;; ;;
...@@ -557,7 +562,6 @@ check_filenames() ...@@ -557,7 +562,6 @@ check_filenames()
pkg_urls="$pkg_urls $opt" pkg_urls="$pkg_urls $opt"
else else
has_space "$opt" && warning "There are space(s) in package name '$opt', it is not supported. Skipped." && continue 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" pkg_names="$pkg_names $opt"
fi fi
quoted_args="$quoted_args \"$opt\"" quoted_args="$quoted_args \"$opt\""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment