~mvo/software-center/fix-index-update-terms-bug

« back to all changes in this revision

Viewing changes to software-center

  • Committer: Michael Vogt
  • Date: 2012-08-16 14:44:29 UTC
  • mfrom: (3098 software-center)
  • mto: This revision was merged to the branch mainline in revision 3100.
  • Revision ID: michael.vogt@ubuntu.com-20120816144429-wi82nue6skl8f8b2
mergedĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
    # ensure we can actually run
128
128
    Gtk.init_check(sys.argv)
129
129
 
130
 
    # set default ssl-ca-file here because it needs only be set once, but
131
 
    # it can not be set in the global context as this will cause segfaults
132
 
    # on exit. However its IMPORTANT to set it as libsoup is *not* secure
133
 
    # by default (see bugzilla #666280 and #666276)
134
 
    from gi.repository import WebKit as webkit
135
 
    # enable certificates validation in webkit views unless specified otherwise
136
 
    if not "SOFTWARE_CENTER_FORCE_DISABLE_CERTS_CHECK" in os.environ:
137
 
        session = webkit.get_default_session()
138
 
        session.set_property("ssl-ca-file", "/etc/ssl/certs/ca-certificates.crt")
139
 
    else:
140
 
        # WARN the user!! Do not remove this
141
 
        LOG.warning("SOFTWARE_CENTER_FORCE_DISABLE_CERTS_CHECK " +
142
 
                    "has been specified, all purchase transactions " + 
143
 
                    "are now INSECURE and UNENCRYPTED!!")
144
 
 
145
130
    # create the app
146
131
    from softwarecenter.ui.gtk3.app import SoftwareCenterAppGtk3
147
132
    with ExecutionTime("create SoftwareCenterApp"):