In the case of an unidentified version string (or not being able to read it in the first place), MX Package Installer defaults to Bullseye also on MX-23. It would be nicer if it defaulted to the current / correct version, along with an indication that this has taken place.
Search for "bullseye" in mainwindow.cpp, which contains default returns like:
Code: Select all
QString MainWindow::getDebianVerName()
{
const auto version = getDebianVerNum();
static const std::map<uchar, QString> versionMap
= {{Release::Jessie, QStringLiteral("jessie")}, {Release::Stretch, QStringLiteral("stretch")},
{Release::Buster, QStringLiteral("buster")}, {Release::Bullseye, QStringLiteral("bullseye")},
{Release::Bookworm, QStringLiteral("bookworm")}, {Release::Trixie, QStringLiteral("trixie")}};
if (const auto it = versionMap.find(version); it != versionMap.end()) {
return it->second;
}
qWarning() << "Error: Invalid Debian version, assumes Bullseye";
return QStringLiteral("bullseye");
}