Merge lp:~evfool/software-properties/miscfixes into lp:software-properties

Proposed by Robert Roth
Status: Merged
Merge reported by: Robert Roth
Merged at revision: not available
Proposed branch: lp:~evfool/software-properties/miscfixes
Merge into: lp:software-properties
Diff against target: 79 lines (+16/-5)
4 files modified
add-apt-repository (+7/-2)
data/gtkbuilder/main.ui (+2/-2)
debian/changelog (+5/-0)
debian/python-software-properties.links (+2/-1)
To merge this branch: bzr merge lp:~evfool/software-properties/miscfixes
Reviewer Review Type Date Requested Status
Didier Roche-Tolomelli Approve
Review via email: mp+90331@code.launchpad.net

Description of the change

This branch fixes three issues:
* Adds a symlink to the add-apt-repository manpage under apt-add-repository (LP: #620098)
* Changes the menmonic for the Revert button from R to V to avoid duplicate R mnemonic (Remove and Revert) (LP: #652523)
* Catches URLError and isntructs the user to check the internet connection (LP: #502698)

To post a comment you must log in.
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

All looks good and working fine :) Merging and pushing. Thanks a lot!

review: Approve
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Oh, just one think:
- usr/share/man/man1/add-apt-repository.1.gz usr/share/man/man1/add-apt-repository.1.gz
didn't you mean apt-add… ?

review: Needs Information
741. By Robert Roth <robert.roth.off@gmail>

Fixed man symlink

Revision history for this message
Robert Roth (evfool) wrote :

Yes, that was a mistake, thanks didrocks for pointing that out. I have fixed it and pushed the change.

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Thanks a lot, pushing to trunk then! :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'add-apt-repository'
2--- add-apt-repository 2011-12-06 16:17:06 +0000
3+++ add-apt-repository 2012-02-01 11:51:18 +0000
4@@ -11,7 +11,7 @@
5 from aptsources.sourceslist import SourceEntry
6 from optparse import OptionParser
7 from gettext import gettext as _
8-from urllib2 import HTTPError
9+from urllib2 import HTTPError, URLError
10
11 def utf8(s):
12 """
13@@ -118,7 +118,7 @@
14
15 # display PPA info (if needed)
16 if line.startswith("ppa:") and not options.assume_yes:
17- from softwareproperties.ppa import get_ppa_info_from_lp
18+ from softwareproperties.ppa import get_ppa_info_from_lp, LAUNCHPAD_PPA_API
19 user, sep, ppa_name = line.split(":")[1].partition("/")
20 ppa_name = ppa_name or "ppa"
21 try:
22@@ -132,6 +132,11 @@
23 # exists. If it exists, list down the PPAs
24 _maybe_suggest_ppa_name_based_on_user(user)
25 sys.exit(1)
26+ except URLError:
27+ print _("Cannot access PPA (%s) to get PPA information, "
28+ "please check your internet connection.") % \
29+ (LAUNCHPAD_PPA_API % (user, ppa_name))
30+ sys.exit(1)
31 # private PPAs are not supported
32 if "private" in ppa_info and ppa_info["private"]:
33 print _("Adding private PPAs is not supported currently")
34
35=== modified file 'data/gtkbuilder/main.ui'
36--- data/gtkbuilder/main.ui 2012-01-06 19:30:55 +0000
37+++ data/gtkbuilder/main.ui 2012-02-01 11:51:18 +0000
38@@ -1032,14 +1032,14 @@
39 <property name="layout_style">end</property>
40 <child>
41 <object class="GtkButton" id="button_revert">
42- <property name="label">gtk-revert-to-saved</property>
43+ <property name="label">Re_vert</property>
44 <property name="visible">True</property>
45 <property name="sensitive">False</property>
46 <property name="can_focus">True</property>
47 <property name="can_default">True</property>
48 <property name="receives_default">True</property>
49 <property name="use_action_appearance">False</property>
50- <property name="use_stock">True</property>
51+ <property name="use_underline">True</property>
52 <signal name="clicked" handler="on_button_revert_clicked" swapped="no"/>
53 </object>
54 <packing>
55
56=== modified file 'debian/changelog'
57--- debian/changelog 2012-01-31 15:51:15 +0000
58+++ debian/changelog 2012-02-01 11:51:18 +0000
59@@ -8,6 +8,11 @@
60 [ Robert Roth ]
61 * Updated expand properties to properly expand the bottom component to avoid
62 putting empty space between components. LP: #912557
63+ * Added symbolic link for add-apt-repository manpage under the
64+ apt-add-repository name, LP: #620098
65+ * Changed Revert button mnemonic to avoid collision with Remove, LP: #652523
66+ * Handle URLError from ppa pages, instruct the user to check the internet
67+ connection (LP: #502698)
68
69 [ Marc Deslauriers ]
70 * SECURITY UPDATE: incorrect ssl certificate validation (LP: #915210)
71
72=== modified file 'debian/python-software-properties.links'
73--- debian/python-software-properties.links 2010-03-26 10:47:58 +0000
74+++ debian/python-software-properties.links 2012-02-01 11:51:18 +0000
75@@ -1,1 +1,2 @@
76-usr/bin/add-apt-repository usr/bin/apt-add-repository
77\ No newline at end of file
78+usr/bin/add-apt-repository usr/bin/apt-add-repository
79+usr/share/man/man1/add-apt-repository.1.gz usr/share/man/man1/apt-add-repository.1.gz

Subscribers

People subscribed via source and target branches

to status/vote changes: