** Also affects: canonical-devices-system-image Importance: Undecided Status: New
** Changed in: canonical-devices-system-image Importance: Undecided => High ** Changed in: canonical-devices-system-image Status: New => In Progress ** Changed in: canonical-devices-system-image Assignee: (unassigned) => kevin gunn (kgunn72) ** Changed in: canonical-devices-system-image Milestone: None => ww46-2015 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to unity-scopes-shell in Ubuntu. https://bugs.launchpad.net/bugs/1389257 Title: Getting package versions via dpkg-query on startup is very expensive Status in Canonical System Image: In Progress Status in unity-scopes-shell package in Ubuntu: In Progress Bug description: The plugin executes dpkg-query on startup to get version numbers of 3 important packages (scopes-api, unity8, self). They are then passed to Smart Scopes Server with every request. Using dpkg-query at this stage seems to have big impact on startup time of the Dash (and phone). Michael Vogt suggested a simple postinst/postrm script that is executed for all 3 packages to put & update their versions via a flat text file, e.g. :::::::::::::: debian/postinst :::::::::::::: #!/bin/sh set -e if [ "$1" = "configure" ]; then dpkg-query -W -f'${Version}' $DPKG_MAINTSCRIPT_PACKAGE \ > /var/lib/unity-scopes-shell/$DPKG_MAINTSCRIPT_PACKAGE fi:::::::::::::: debian/postrm :::::::::::::: #!/bin/sh set -e rm -f /var/lib/unity-scopes-shell/$DPKG_MAINTSCRIPT_PACKAGE To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1389257/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp