~mmcg069/software-center/mkit-theme-tweaks

« back to all changes in this revision

Viewing changes to utils/update-software-center

  • Committer: Andrew
  • Date: 2009-10-19 16:51:47 UTC
  • mfrom: (407 trunk)
  • mto: This revision was merged to the branch mainline in revision 442.
  • Revision ID: rugby471@jaunty-toaster-20091019165147-hrqitfl8sa4k6s4p
(merge with trunk)

software-center (1.0) karmic; urgency=low

  - use screenshots.ubuntu.com as screenshot url
* softwarecenter/view/catview.py:
  - do not crash for unavailable categories with <OnlyUnallocated>
    (LP: #451922)

 -- Michael Vogt <michael.vogt@ubuntu.com>Thu, 15 Oct 2009 18:35:58 +0200

software-center (0.5.2) karmic; urgency=low

[ Michael Vogt ]
* softwarecenter/view/appdetailsview.py:
  - deal with connection refused errors properly
  - use shorter default socket timeout to avoid hangs when
    the screenshot site is unavailable
* softwarecenter/db/database.py:
  - require explicit open() to avoid possible race (LP: #449385)
* softwarecenter/view/widgets/imagedialog.py:
  - fix crash when unknown error happend during screenshot download
    (LP: #4479829)
* data/ui/SoftwareCenter.ui:
  - change unicode "..." to three "." to work around bug in 
    gtkbuilder/intltool that makes strings with them untranslatable
    (https://bugzilla.gnome.org/show_bug.cgi?id=596205) (LP: #450600)
* po/*:
  - sync from rosetta and unfuzzy the strings that move
    from &#2026; to "..." (LP: #450600)
* softwarecenter/view/catview.py
  - do not crash if a desktop-directory can not be foudn or is
    invalid (LP: #450842)
* utils/update-software-center:
  - do not crash if glib is not available (e.g. during a upgrade)
    (LP: #450793)
* install the softwarecenter-installed emblem into a private dir
  to make not show up in the nautilus emblems folder (LP: #437385)

[ Josh Holland ]
* Fixed up man page (LP: #448896)

 -- Michael Vogt <michael.vogt@ubuntu.com>Wed, 14 Oct 2009 11:51:26 +0200

software-center (0.5.1) karmic; urgency=low

* icon updates from Kenneth Wimer 
* softwarecenter/db/update.py: 
  - fix index bug in pkgname handling
* make screenshots scrollable (LP: #439420)
* fix reopen() handling by not using xapian.Database.reopen()
  but instead do a full open of the db (LP: #430603)
* softwarecenter/view/appdetailsview.py:
  - add support for http proxies (LP: #446069)
  - fix crash in cdrom handling (LP: #446269)
  - do not show error when a transaction is cancelt 
    (LP: #440941)
* softwarecenter/view/widgets/imagedialog.py:
  - change default window size to match the default image
    size from screenshots.debian.net (LP: #445938)
* debian/control:
  - depend on the latest aptdaemon for working proxy support

 -- Michael Vogt <michael.vogt@ubuntu.com>Mon, 12 Oct 2009 18:25:10 +0200

software-center (0.5.0) karmic; urgency=low

* softwarecenter/db/update.py:
  - when using getdefaultlocale() change the order of the environment
    variable that are checked to 'LANGUAGE','LANG','LC_CTYPE','LC_ALL'
    LP: #444316
* add support RTL in the webkit widgets
* Merged from Matthew McGowan:
  - better integration of the arrow button with the used theme
  - update arrow button when style changes (supports high contrast
    themes and somesuch now too)
  - support RTL langauges with the arrow button
  - new pathbar can be activated via SOFTWARE_CENTER_NEW_PATHBAR=1
    in the environment (not used by default)

 -- Michael Vogt <michael.vogt@ubuntu.com>Wed, 07 Oct 2009 15:52:40 +0200

software-center (0.4.6) karmic; urgency=low

* debian/control:
  - add versionized dependency to aptdaemon (needs some of the
    latest API for the async calls) LP: #444218
* softwarecenter/view/pendingview.py:
  - display the operation (Install Packages, Remove Packages,
    Applying Changes) for operations that come from outside 
    software-center (LP: #444254)
* softwarecenter/app.py:
  - do not crah on corrupted database
* utils/update-software-center:
  - ignore if dbus can not be imported (e.g. because we are in 
    the middle of a upgrade and python packages are unavailable)
    LP: #443177)
  - do not show full stacktrace if dbus is not available 
    (LP: #444089)
  - add a small delay between dubs rebuild signal and actual rebuild
    (LP: #438639)

 -- Michael Vogt <michael.vogt@ubuntu.com>Tue, 06 Oct 2009 11:27:09 +0200

software-center (0.4.5) karmic; urgency=low

* softwarecenter/view/appdetailsview.py:
  - avoid blocking if the authentication dialog comes up 
    (LP: #436413)
* softwarecenter/view/appdetailsview.py:
  - switch to use urls that return 404 if a package has no
    screenshot
* softwarecenter/view/widgets/imagedialog.py,
  softwarecenter/view/appdetailsview.py:
  - merge lp:~mvo/software-center/ubuntu-404 that implements 404 
    handling and show ubuntu branded dummy image (LP: #425874)
* softwarecenter/view/appview.py:
  - support environment to switch sorting for searches:
    SOFTWARE_CENTER_SEARCHES_SORT_MODE={popcon,alphabetic,xapian}
    (to be able to test the different mode quickly)
* softwarecenter/view/appdetailsview.py:
  - fix crash when no icon can be found (LP: #442040, LP: #440306)
* softwarecenter/view/catview.py:
  - do not crash if no icon can be found (LP: #441171)
* data/templates/CategoriesView.html:
  - disable drag-n-drop (LP: #440446)

 -- Michael Vogt <michael.vogt@ubuntu.com>Mon, 05 Oct 2009 18:23:27 +0200

software-center (0.4.4) karmic; urgency=low

* debian/rules:
  - cleanup, we do not need python-central, all the python code is
    in a private dir
* softwarecenter/view/appview.py:
  - display the package name in parenthesis if the application name
    appears multiple times in the database (e.g. for a generic name
    like "Terminal") LP: #434625
* softwarecenter/app.py, softwarecenter/view/viewswitcher.py:
  - automatically switch back to the previous view if the progress
    view is empty and the user has not navigated away manually
    (LP: #431907)
* po/ro.po:
  - added Romanian translation (thanks to Alex Eftimie)

 -- Michael Vogt <michael.vogt@ubuntu.com>Fri, 02 Oct 2009 18:18:16 +0200

software-center (0.4.3) karmic; urgency=low

* debian/rules:
  - remove .PHONY again, it breaks building with DH7

 -- Michael Vogt <michael.vogt@ubuntu.com>Tue, 29 Sep 2009 09:26:32 +0200

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
 
21
21
import apt
22
 
import dbus
23
 
import dbus.service
24
 
import glib
25
 
import gobject
26
22
import locale
27
23
import logging
28
24
import os
29
25
import sys
 
26
import time
30
27
import xapian
31
 
from dbus.mainloop.glib import DBusGMainLoop
32
 
 
33
 
 
34
 
try:
35
 
    from softwarecenter.enums import *
36
 
except ImportError:
37
 
    # support running from the dir too
38
 
    d = os.path.dirname(os.path.abspath(os.path.join(os.getcwd(),__file__)))
39
 
    sys.path.insert(0, os.path.split(d)[0])
40
 
    from softwarecenter.enums import *
41
 
 
42
 
try:
43
 
    from softwarecenter.db.update import rebuild_database
44
 
except ImportError:
45
 
    # support running from the dir too
46
 
    d = os.path.dirname(os.path.abspath(os.path.join(os.getcwd(),__file__)))
47
 
    sys.path.insert(0, os.path.split(d)[0])
48
 
    from softwarecenter.db.update import update
 
28
 
 
29
from softwarecenter.enums import *
 
30
from softwarecenter.db.update import rebuild_database
 
31
 
 
32
# dbus may not be available during a upgrade so we 
 
33
# only set it up if its there
 
34
try:
 
35
    import dbus
 
36
    import dbus.service
 
37
    import glib
 
38
    import gobject # without gobject it will crash
 
39
    from dbus.mainloop.glib import DBusGMainLoop
 
40
except ImportError:
 
41
    pass
 
42
 
 
43
# add a bit of extra time between sending the "we-rebuild-the-db-now"
 
44
# signal and the actual rebuilding to help the applications to shutdown
 
45
# the DB access
 
46
APP_CATCHUP_DELAY = 2
49
47
 
50
48
class UpdateSoftwarecenterDbus(dbus.service.Object):
51
49
    """ 
63
61
    def DatabaseRebuilding(self, isRebuilding):
64
62
        logging.debug("Sending DatabaseRebuilding signal '%s'" % isRebuilding)
65
63
 
 
64
 
66
65
if __name__ == "__main__":
67
66
    #logging.basicConfig(level=logging.DEBUG)
68
67
    try:
78
77
        bus_name = dbus.service.BusName('com.ubuntu.Softwarecenter', bus)
79
78
        dbus_controller = UpdateSoftwarecenterDbus(bus_name)
80
79
        dbus_controller.DatabaseRebuilding(True)
 
80
        time.sleep(APP_CATCHUP_DELAY)
81
81
    except:
82
 
        logging.exception("dbus failure (ignoring")
 
82
        logging.warn("Failed to setup dbus (ignoring)")
83
83
 
84
84
    # rebuild and send signal when done
85
85
    try:
93
93
    finally:
94
94
        # signal that the xapian db is valid again
95
95
        if dbus_controller:
 
96
            time.sleep(APP_CATCHUP_DELAY)
96
97
            dbus_controller.DatabaseRebuilding(False)
97
98
            context = glib.main_context_default()
98
99
            while context.pending():