~ubuntu-branches/ubuntu/vivid/software-center/vivid

« back to all changes in this revision

Viewing changes to utils/expunge-cache.py

  • Committer: Package Import Robot
  • Author(s): Michael Vogt, kiwinote, Paolo Rotolo, Gary Lasker, Michael Vogt, Dave Morley
  • Date: 2012-03-26 19:02:24 UTC
  • Revision ID: package-import@ubuntu.com-20120326190224-qhmxquqfyfvuosbr
Tags: 5.1.13.2
[ kiwinote ]
* looks like the latest gtk causes us to receive less style-updated
  signals, call init_sc_css_provider explicitly so we don't loose our
  custom theming (LP: #961102)

[ Paolo Rotolo ]
* data/ui/gtk3/SoftwareCenter.ui:
   - fix string from "Terms of Service" to "Terms of Use" (LP: #963309).

[ Gary Lasker ]
* lp:~gary-lasker/software-center/tos-urls-lp961538:
  - use a different url for the inline ToS dialog (LP: #961538)
* lp:~gary-lasker/software-center/fix-crash-lp960742:
  - do not crash if file can not be unlinked (LP: #960742)
* lp:~gary-lasker/software-center/tos_buy_button_fix_lp961216:
  - This branch fixes bug LP: #961216, where the "Buy" button on the
    details page and listview stays insensitive after declining the
    ToS dialog
* lp:~gary-lasker/software-center/fix-crash-lp961198:
  - make recommendations menu available once the available pane is
    ready (LP: #961198)

[ Michael Vogt ]
* lp:~mvo/software-center/builder_get_cleanup:
  - cleaner way to get menuitems
* lp:~mvo/software-center/lp-955346:
  - draw stars with 1px border to get crisper stars (LP: #955346)
* lp:~mvo/software-center/fix-purchase-accept-crash:
  - fixes crash when accepting tos on system without s-c config file
* lp:~mvo/software-center/lp962927:
  - fix race condition on creating cache dir (LP: #962927)
* lp:~mvo/software-center/lp964918:
  - do not raise an exception in the case of multiple origins,
    instead log a warning and do the right thing in the UI
    (LP: #964918)

[ Dave Morley ]
* lp:~davmor2/software-center/lp965222:
  - add ldtp based statup time helper

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
            print "Would delete: %s" % f
26
26
        else:
27
27
            logging.debug("Deleting: %s" % f)
28
 
            os.unlink(f)
 
28
            try:
 
29
                os.unlink(f)
 
30
            except OSError as e:
 
31
                logging.warn("When expunging the cache, could not unlink "
 
32
                             "file '%s' (%s)'" % (f, e))
29
33
 
30
34
    def clean(self):
31
35
        # go over the directories