Merge lp:~azzar1/software-properties/depends-on-keyring into lp:software-properties

Proposed by Andrea Azzarone
Status: Merged
Approved by: Sebastien Bacher
Approved revision: 1016
Merged at revision: 1014
Proposed branch: lp:~azzar1/software-properties/depends-on-keyring
Merge into: lp:software-properties
Diff against target: 58 lines (+18/-4)
3 files modified
debian/changelog (+9/-0)
debian/control (+2/-1)
softwareproperties/GoaAuth.py (+7/-3)
To merge this branch: bzr merge lp:~azzar1/software-properties/depends-on-keyring
Reviewer Review Type Date Requested Status
Sebastien Bacher Approve
Review via email: mp+342449@code.launchpad.net

Commit message

Depends on gnome-keyring, which provides org.freedesktop.secrets.service.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for the change, gnome-keyring should be fine but I'm unsure all desktops use/want it. What happens if the depends is missing? Could we make it a Recommends instead and somewhat handle/warn the user if it's missing?

review: Needs Information
1014. By Andrea Azzarone

Mark gnome-kerying as recommended and avoid crashing if not installed.

Revision history for this message
Andrea Azzarone (azzar1) wrote :

Done!

1015. By Andrea Azzarone

Merge with trunk.

Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks but you don't want gnome-keyring to be an alternative recommends to the other session but an additional one, e.g don't add a "|" but a "," and list it on a new line

review: Needs Fixing
1016. By Andrea Azzarone

Fix debian/control.

Revision history for this message
Andrea Azzarone (azzar1) wrote :

Done!

Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2018-04-03 08:41:44 +0000
3+++ debian/changelog 2018-04-03 15:04:17 +0000
4@@ -1,3 +1,12 @@
5+software-properties (0.96.24.26) UNRELEASED; urgency=medium
6+
7+ * debian/control:
8+ - Mark gnome-keyring as recommended, which provides org.freedesktop.secrets.service.
9+ * GoaAuty.py:
10+ - Show warning and avoid crashing if gnome-keyring is not installed. (LP: #1760096)
11+
12+ -- Andrea Azzarone <andrea.azzarone@canonical.com> Tue, 03 Apr 2018 16:04:32 +0200
13+
14 software-properties (0.96.24.25) bionic; urgency=medium
15
16 * ppa.py:
17
18=== modified file 'debian/control'
19--- debian/control 2018-03-30 13:59:59 +0000
20+++ debian/control 2018-04-03 15:04:17 +0000
21@@ -66,7 +66,8 @@
22 ubuntu-drivers-common (>= 1:0.2.75),
23 python3-gi,
24 libgtk3-perl
25-Recommends: gnome-session-bin | xfce4-session | lubuntu-default-settings | lxqt-session
26+Recommends: gnome-session-bin | xfce4-session | lubuntu-default-settings | lxqt-session,
27+ gnome-keyring
28 Description: manage the repositories that you install software from (gtk)
29 This software provides an abstraction of the used apt repositories.
30 It allows you to easily manage your distribution and independent software
31
32=== modified file 'softwareproperties/GoaAuth.py'
33--- softwareproperties/GoaAuth.py 2018-03-14 19:23:29 +0000
34+++ softwareproperties/GoaAuth.py 2018-04-03 15:04:17 +0000
35@@ -22,7 +22,8 @@
36 import gi
37 gi.require_version('Goa', '1.0')
38 gi.require_version('Secret', '1')
39-from gi.repository import Goa, GObject, Secret
40+from gi.repository import GLib, Goa, GObject, Secret
41+import logging
42
43 SECRETS_SCHEMA = Secret.Schema.new('com.ubuntu.SotwareProperties',
44 Secret.SchemaFlags.NONE,
45@@ -102,8 +103,11 @@
46
47 def _load(self):
48 # Retrieve the stored account-id
49- account_id = Secret.password_lookup_sync(SECRETS_SCHEMA, {'key': 'account-id'}, None)
50- self._update_state_from_account_id(account_id)
51+ try:
52+ account_id = Secret.password_lookup_sync(SECRETS_SCHEMA, {'key': 'account-id'}, None)
53+ self._update_state_from_account_id(account_id)
54+ except GLib.GError as e:
55+ logging.warning ("Connection to session keyring failed: {}".format(e))
56
57 def _store(self):
58 if self.logged:

Subscribers

People subscribed via source and target branches

to status/vote changes: