Univention Bugzilla – Bug 41037
Software policy: Check for packages to be removed might fail
Last modified: 2023-06-28 10:33:08 CEST
univention-ucc-software-update receives the "univentionCorporateClientSoftwareUpdateRemoveList" from UCS and checks via dpkg-query if the package is installed or not: > 103 if dpkg-query -W -f='${Status}' $PKGRM | grep -q "installed"; then > 104 rmneeded="$rmneeded $I" > 105 fi The problem is that the "grep" statement is incomplete. "dpkg-query -W -f='${Status}'" can have at least these outputs: > dpkg-query -W -f='${Status}' gtg > deinstall ok config-files > > dpkg-query -W -f='${Status}' hexchat > install ok installed > > dpkg-query -W -f='${Status}' amarok > unknown ok not-installed The last one (not-installed) also matches the grep command, but that is clearly not wanted.
Created attachment 7590 [details] proposed patch
UCC 1.x / 2.x is out of maintenance. In case this Bug is still relevant please clone with the correct version.