Werk #6099: Only reset default version when current default version is uninstalled

Komponenterpm
TitelOnly reset default version when current default version is uninstalled
Datum2018-05-17 09:15:50
Check_MK EditionCheck_MK Raw Edition (CRE)
Check_MK Version1.6.0i1,1.5.0b5
LevelTrivial Change
KlasseBug Fix
KompatibilitätKompatibel - benötigt kein manuelles Eingreifen

Previously all RPM packages that were uninstalled were resetting the current default version to the result of "ls -A /omd/versions 2>/dev/null| sort -n | tail -n 1". The uninstall logic of NEW packages will now first check whether or not the version currently being removed is the default version and only reset the default version in case it is needed.