2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-10-21 07:08:12 +00:00
Files
xcat-core/xCAT/postscripts
Daniel Hilst fefced0b49 fix(xcat-core): otherpkgs prints the whole package list on every run
The otherpkgs postscript writes two diagnostic lines for each package
sublist: the split package array with its size, and the detected package
manager. On a list with tens of entries these lines fill the updatenode
output and the node log, and hide the install results.

The two echo commands sit in xCAT/postscripts/otherpkgs, after the
IFS split that builds pkgsarray, and no condition guards them. Every
other diagnostic in the script runs only when VERBOSE is set.

This change puts the two lines in the same "if [ $VERBOSE ]" block the
rest of the script uses.

xCAT-test/bats/postscripts_otherpkgs.bats runs the split and the lines
that follow it. One case asserts no output when VERBOSE is empty, and
fails on the parent commit. A second case asserts both lines are still
printed when VERBOSE is set.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
(cherry picked from commit 402a6f4a45)
2026-09-24 14:56:56 +00:00
..
2024-05-07 16:19:25 +02:00
2018-11-15 17:12:55 +08:00
2016-07-21 13:27:40 -04:00
2016-08-15 08:50:49 -04:00
2024-05-07 16:43:07 +02:00
2016-07-21 13:27:40 -04:00
2022-08-15 10:16:22 -04:00
2020-06-04 10:00:56 -04:00
2020-06-04 10:00:56 -04:00
2016-07-20 11:40:27 -04:00
2018-07-06 04:46:25 -04:00
2022-08-15 10:16:22 -04:00
2018-11-15 17:12:55 +08:00
2018-11-15 17:12:55 +08:00
2018-11-15 17:12:55 +08:00
…
2023-02-28 15:43:03 -05:00
2018-11-15 17:12:55 +08:00
2022-08-15 10:16:22 -04:00
2018-11-15 17:12:55 +08:00
2016-07-21 13:27:40 -04:00
2016-07-21 13:27:40 -04:00
2018-11-15 17:12:55 +08:00