diff --git a/include/tests_ports_packages b/include/tests_ports_packages index cd272bd2..94c71b35 100644 --- a/include/tests_ports_packages +++ b/include/tests_ports_packages @@ -391,8 +391,8 @@ SPACKAGES=`${DNFBINARY} -q list installed 2> /dev/null | awk '{ if ($1!="Installed" && $1!="Last") {print $1","$2 }}'` for J in ${SPACKAGES}; do N=`expr ${N} + 1` - PACKAGE_NAME=`echo ${J} | cut -d ',' -f2` - PACKAGE_VERSION=`echo ${J} | cut -d ',' -f3` + PACKAGE_NAME=`echo ${J} | cut -d ',' -f1` + PACKAGE_VERSION=`echo ${J} | cut -d ',' -f2` LogText "Found package: ${PACKAGE_NAME} (version: ${PACKAGE_VERSION})" INSTALLED_PACKAGES="${INSTALLED_PACKAGES}|${PACKAGE_NAME},${PACKAGE_VERSION}" done