← Back to team overview

ubuntustudio-bugs team mailing list archive

[Bug 2014974] [NEW] edubuntu-installer and ubuntu-installer incorrectly report package as installed when using languages other than English

 

Public bug reported:

Both edubuntu-installer and ubuntustudio-installer are using the
following code to determine if a package is installed:

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-installer are localized as of now, another
route for determining package installation needs to be used.

This will likely be doable by using the error code return from

dpkg -s "${pkg}" &> /dev/null

** Affects: edubuntu-installer (Ubuntu)
     Importance: High
     Assignee: Erich Eickmeyer (eeickmeyer)
         Status: In Progress

** Affects: ubuntustudio-installer (Ubuntu)
     Importance: High
     Assignee: Erich Eickmeyer (eeickmeyer)
         Status: In Progress

** Also affects: ubuntustudio-installer (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: ubuntustudio-installer (Ubuntu)
       Status: New => In Progress

** Changed in: ubuntustudio-installer (Ubuntu)
   Importance: Undecided => High

** Changed in: ubuntustudio-installer (Ubuntu)
     Assignee: (unassigned) => Erich Eickmeyer (eeickmeyer)

-- 
You received this bug notification because you are a member of Ubuntu
Studio Bugs, which is subscribed to ubuntustudio-installer in Ubuntu.
https://bugs.launchpad.net/bugs/2014974

Title:
  edubuntu-installer and ubuntu-installer incorrectly report package as
  installed when using languages other than English

Status in edubuntu-installer package in Ubuntu:
  In Progress
Status in ubuntustudio-installer package in Ubuntu:
  In Progress

Bug description:
  Both edubuntu-installer and ubuntustudio-installer are using the
  following code to determine if a package is installed:

  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-installer are localized as of now,
  another route for determining package installation needs to be used.

  This will likely be doable by using the error code return from

  dpkg -s "${pkg}" &> /dev/null

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/edubuntu-installer/+bug/2014974/+subscriptions



Follow ups