Commit a9d7dfb2 authored by matze's avatar matze

__package_pip: split extra 'all' to a list of all extras

This will fix if a package will be upgraded from some extras to all
extras. Previously, it will not work because some dependencies of 'all'
are already installed, so the feature 'all' is already installed.

Now, it will use a list of all extras to iterate over them separatly. This
will result it will never install all extras via `[all]`, but rather
parent 73983828
Pipeline #3167 passed with stage
in 1 minute and 10 seconds
......@@ -34,7 +34,14 @@ then
pip3 freeze > "$pip_freeze"
for extra in $(tr ',' '\n' < "$__object/parameter/extra")
# If all is set, it searches all available extras to separatly check them.
# It would work with just 'all' (cause dependencies are given), but will
# not update if one extra is already present. Side effect is that it will
# not use [all] but instead name all extras seperatly.
for extra in $(if grep -qFx all "$__object/parameter/extra";
then awk -F': ' '$1 == "Provides-Extra" && $2 != "all"{print $2}' "$distinfo_dir/METADATA";
else tr ',' '\n' < "$__object/parameter/extra";
# create a grep BRE pattern to search all packages
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