[Bug 1042231] Re: InstallPackageNames should not return until the package has been installed

Launchpad Bug Tracker 1042231 at bugs.launchpad.net
Mon Oct 15 04:51:09 UTC 2012


This bug was fixed in the package sessioninstaller -
0.20+bzr128-0ubuntu1.2

---------------
sessioninstaller (0.20+bzr128-0ubuntu1.2) precise-proposed; urgency=low

  * debian/patches/synchronous-transactions.patch: Cherry-pick patch from
    upstream (r132) to wait until transactions are done before returning (LP:
    #1042231)
 -- Iain Lane <iain.lane at canonical.com>   Mon, 24 Sep 2012 12:48:25 +0100

** Changed in: sessioninstaller (Ubuntu Precise)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1042231

Title:
  InstallPackageNames should not return until the package has been
  installed

Status in OEM Priority Project:
  Fix Committed
Status in OEM Priority Project precise series:
  New
Status in Session Installer:
  New
Status in “sessioninstaller” package in Ubuntu:
  Fix Released
Status in “sessioninstaller” source package in Precise:
  Fix Released

Bug description:
  [ Description ]

  - Call the D-Bus method InstallPackageNames() to install some package
  - You are prompted asking if you want to actually install this package, accept
  - You are pompted asking for your admin pass, enter it
  - The InstallPackageNames method returns and the package is being installed

  This method should not return until the package has actually be
  installed. That's the easiest way for the application to know that the
  package is now ready to be used. That's also how it's implemented in
  the official implementation of PackageKit.

  [ Development fix ]

  r132 in lp:sessioninstaller

  [ SRU fix ]

  identical

  [ Test case ]

  1. Remove some GStreamer plugin by executing `sudo apt-get purge --yes gstreamer0.10-plugins-ugly && sudo apt-get autoremove --purge --yes`.
  2. Execute the command `python /usr/share/pyshared/sessioninstaller/gstinstaller.py "gstreamer|0.10|totem|Advanced Streaming Format (ASF) demuxer|decoder-video/x-ms-asf"`.

  [ Regression potential ]

  The most likely way this will break is to make the
  InstallPackageNames() function return at an inappropriate time. Check
  that it is synchronous, that it doesn't return until the package is
  installed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1042231/+subscriptions



More information about the Ubuntu-sponsors mailing list