I discussed that with Michael again, and writing this as an aptdaemon
plugin is a lot more elegant than modifying the core aptdaemon code, so
moving this to language-selector.

As for performance, I now rewrote the check-language-support logic from
scratch, as the l-s code was really horrible, slow, and hard to
maintain. The replacement is much smaller, (IMHO) easy to read and
understand, has full test coverage, and is fast.

I added a performance test to the test suite which does a full check of
all missing lang support packs for all installed packages for all
installed locales, and it takes a mere 8 ms on my system (under the
condition that we have an initialized apt.Cache() object, which is given
in an aptdaemon plugin). I think this is a negligible overhead and well
worth spending.

** Changed in: aptdaemon (Ubuntu Precise)
       Status: Triaged => Won't Fix

** Changed in: aptdaemon (Ubuntu Precise)
     Assignee: Martin Pitt (pitti) => (unassigned)

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

Title:
  When KDE or gnome apps get installed, the corresponding language-packs
  should be pulled automatically

To manage notifications about this bug go to:
https://bugs.launchpad.net/hundredpapercuts/+bug/396414/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to