"Rebuilding application catalogue" uses a separate window

Bug #605048 reported by Matthew Paul Thomas
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Fix Released
Low
Aaron Peachey
software-center (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

software-center trunk r902, Ubuntu 10.04
Ubuntu Software Center 3.0.5, Ubuntu 10.10

(Based on test case sc-018. <https://wiki.ubuntu.com/SoftwareCenter#Handling%20an%20externally-changed%20apt%20cache>)

1. While USC is at the main “Get Software” screen, at a terminal enter “sudo update-software-center” (without quotes).
2. Try to navigate to "Installed Software".
3. Wait for the update to complete.

What happens:
1. A minimizable, maximizable, closable window appears saying something like "Rebuilding application catalogue…"
2. You can't navigate anywhere.

What should happen:
1. The message "Another program has changed the software catalog. / One moment, please…" should appear not in a separate window, but in the main pane of the main USC window.
2. The same screen should appear.
3. Once the update completes, the normal “Installed Software” screen should appear.

It may save time to fix bug 686994 at the same time as this bug.

Tags: patch

Related branches

Revision history for this message
Vish (vish) wrote :

Carrying-over papercut task from dup.

Changed in software-center (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
status: Confirmed → Triaged
Changed in hundredpapercuts:
assignee: nobody → Papercuts Ninja (papercuts-ninja)
importance: Undecided → Low
milestone: none → nt7-potpourri
status: New → Triaged
Aaron Peachey (aaronp)
Changed in hundredpapercuts:
assignee: Papercuts Ninja (papercuts-ninja) → Aaron Peachey (aaronp)
status: Triaged → In Progress
description: updated
description: updated
tags: added: patch
Aaron Peachey (aaronp)
Changed in hundredpapercuts:
status: In Progress → Fix Committed
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Running software-center trunk r1398 on Ubuntu 10.10, when I enter "sudo update-software-center", USC doesn't react at all. update-software-center chugs away for a minute then exits. What's going on?

Revision history for this message
Paul Sladen (sladen) wrote :

Whatever it is, it involves stat()ing for 'app-install-data.mo' a quarter of a million times, so that file must be *really* important:

  $ time sudo strace update-software-center 2>&1 | grep -c '^stat64.*app-install-data.mo'
  271169

  real 2m1.576s
  user 1m9.032s
  sys 0m49.031s

Revision history for this message
Aaron Peachey (aaronp) wrote :

Hi,
It now rebuilds the xapian db to a new location then silently updates the link to the new db when complete. In usc you can sometimes notice a slight screen flicker when update-software-center finishes, if you're ready looking for it. Otherwise, usc no longer bothers the user when updating the db and they can continue using usc without realising the db needed updating.

Would it be preferable for update-software-center to output a message to the terminal when the rebuild is complete?

Revision history for this message
Aaron Peachey (aaronp) wrote :

Note where I say 'silently updates the link to the new db' it would be more correct to say it 'silently overwrites the db location with the new updated version of the db'

Revision history for this message
Aaron Peachey (aaronp) wrote :

See new branch attached for additional fix

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

That this now no longer needs an interface at all is brilliant. Now that I know what's going on, I've removed that part from the specification. <https://wiki.ubuntu.com/SoftwareCenter?action=diff&rev2=464&rev1=463>

Paul, please report a new bug for any over-stat()ing.

Revision history for this message
Paul Sladen (sladen) wrote :

Over-stat()ing filed as bug #697650.

Revision history for this message
Kiwinote (kiwinote) wrote :

This has all landed by now - so is 'fix released'. Thanks a lot Aaron!

Changed in software-center (Ubuntu):
status: Triaged → Fix Released
Changed in hundredpapercuts:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.