edubuntu-installer and ubuntustudio-installer incorrectly report package as installed when using languages other than English
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
edubuntu-installer (Ubuntu) |
Fix Released
|
High
|
Erich Eickmeyer | ||
ubuntustudio-installer (Ubuntu) |
Fix Released
|
High
|
Erich Eickmeyer |
Bug Description
Both edubuntu-installer and ubuntustudio-
apt-cache policy "${pkg}" | grep Installed | cut -d ':' -f 2 | cut -c 2-
This relies on the string "Installed" being returned by apt-cache which is translated depending on the system language. Since neither edubuntu-installer nor ubuntustudio-
This will likely be doable by using the error code return from
dpkg -s "${pkg}" &> /dev/null
Additionally, some other idiosyncrasies were used when looking for Depends and Recommends. Now a different algorithm will be used without depending on specific words.
Changed in ubuntustudio-installer (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Erich Eickmeyer (eeickmeyer) |
Changed in ubuntustudio-installer (Ubuntu): | |
milestone: | none → ubuntu-23.04 |
description: | updated |
Changed in edubuntu-installer (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in ubuntustudio-installer (Ubuntu): | |
status: | In Progress → Fix Committed |
summary: |
- edubuntu-installer and ubuntu-installer incorrectly report package as - installed when using languages other than English + edubuntu-installer and ubuntustudio-installer incorrectly report package + as installed when using languages other than English |
This bug was fixed in the package edubuntu-installer - 0.4
---------------
edubuntu-installer (0.4) lunar; urgency=medium
* Stop using explicit strings to determine package status (LP: #2014974)
-- Erich Eickmeyer <email address hidden> Sat, 01 Apr 2023 17:14:04 -0700