Skip to content
Snippets Groups Projects
Commit 1076269f authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

packages2install: show all packages if no filter matched

parent 3c218e2d
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
# 2021-08-20 v1.5 <martin.gasser@iml.unibe.ch> bug fixing - missing sudo in yum command # 2021-08-20 v1.5 <martin.gasser@iml.unibe.ch> bug fixing - missing sudo in yum command
# 2021-12-16 v1.6 <axel.hahn@iml.unibe.ch> show filtered overview # 2021-12-16 v1.6 <axel.hahn@iml.unibe.ch> show filtered overview
# 2021-12-17 v1.7 <axel.hahn@iml.unibe.ch> show non matching packages in section "other" # 2021-12-17 v1.7 <axel.hahn@iml.unibe.ch> show non matching packages in section "other"
# 2021-12-20 v1.8 <axel.hahn@iml.unibe.ch> show all packages if no filter matched
# ====================================================================== # ======================================================================
...@@ -218,12 +219,13 @@ function showFilteredPackages(){ ...@@ -218,12 +219,13 @@ function showFilteredPackages(){
# show count of non matching packages # show count of non matching packages
typeset -i iOther=$iTotal-$iFound typeset -i iOther=$iTotal-$iFound
if [ $iFound -eq 0 ]; then if [ $iFound -eq 0 ]; then
echo "No package matched a group filter." echo "Remark: No package matched a group filter."
echo "--- All packages:"
else else
echo "--- Other packages: $iOther" echo "--- Other packages: $iOther"
echo "$pkgsum" | _filterPkg "${filterAll}" "-v" | nl
echo
fi fi
echo "$pkgsum" | _filterPkg "${filterAll}" "-v" | nl
echo
# total packages # total packages
echo Total packages to install: $iTotal echo Total packages to install: $iTotal
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment