Merge lp:~om26er/ubuntu/maverick/nautilus/nautilus-fix-630512-maverick into lp:ubuntu/maverick-proposed/nautilus

Proposed by Omer Akram
Status: Merged
Merge reported by: Sebastien Bacher
Merged at revision: not available
Proposed branch: lp:~om26er/ubuntu/maverick/nautilus/nautilus-fix-630512-maverick
Merge into: lp:ubuntu/maverick-proposed/nautilus
Diff against target: 56 lines (+35/-1)
3 files modified
debian/changelog (+7/-0)
debian/patches/100_dont_treat_tilda_as_a_relative_path.patch (+27/-0)
debian/patches/series (+1/-1)
To merge this branch: bzr merge lp:~om26er/ubuntu/maverick/nautilus/nautilus-fix-630512-maverick
Reviewer Review Type Date Requested Status
Artur Rona (community) Approve
Bilal Akhtar (community) Needs Fixing
Ubuntu Sponsors Pending
Review via email: mp+45048@code.launchpad.net

Description of the change

cherry picked from upstream git to fix bug 630512. although the issue is a very small one but it got media attention and is a regression-release

To post a comment you must log in.
Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Looks good, except for a few not-so-important problems with your patch:

1) Change the Origin: DEP-3 tag in debian/patches/dont_treat_tilda_as_a_relative_path.patch to Applied-Upstream:

2) In the changelog, (LP: 630512) is not likely to close the bug. Make it (LP: #630512).

3) I may be wrong, but the usual convention is to get the new patch apply the last in debian/patches/series. Moreover, the proper convention is to have a number at the beginning of the name of the patch, so in this case rename the patch to 100_dont_treat_tilda_as_a_relative_path.patch and make the same change in debian/patches/series as well.

Revision history for this message
Bilal Akhtar (bilalakhtar) :
review: Needs Fixing
Revision history for this message
Artur Rona (ari-tczew) wrote :

1)'From' tag should show who sent a patch to Ubuntu, so please use yourself. For Cosimo please use tag ' Author'.

2) debian/changelog: Please move (LP: #630512) one line above, so it should be:
* debian/patches/dont_treat_tilda_as_a_relative_path.patch: (LP: #630512)
It prevents from too long lines.

3) As Bilal suggested, rename patch and move it at the end of series file.

review: Needs Fixing
205. By Omer Akram

* debian/patches/dont_treat_tilda_as_a_relative_path.patch: (LP: #630512)
  - Open the user's home dir when '~' is entered into the address bar.

206. By Omer Akram

debian/patches/100_dont_treat_tilda_as_a_relative_path.patch: (LP: #630512)

Revision history for this message
Omer Akram (om26er) wrote :

I have made the suggested changes. Thanks for the review.

Revision history for this message
Artur Rona (ari-tczew) wrote :

OK now looks good. Please any core-dev upload.

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 2010-11-05 11:09:49 +0000
3+++ debian/changelog 2011-01-09 17:11:23 +0000
4@@ -1,3 +1,10 @@
5+nautilus (1:2.32.0-0ubuntu1.2) maverick-proposed; urgency=low
6+
7+ * debian/patches/100_dont_treat_tilda_as_a_relative_path.patch: (LP: #630512)
8+ - Open the user's home dir when '~' is entered into the address bar.
9+
10+ -- Omer Akram <om26er@ubuntu.com> Mon, 03 Jan 2011 20:35:02 +0500
11+
12 nautilus (1:2.32.0-0ubuntu1.1) maverick-proposed; urgency=low
13
14 * debian/patches/96_git_unmount_crash.patch: backport an upstream commit
15
16=== added file 'debian/patches/100_dont_treat_tilda_as_a_relative_path.patch'
17--- debian/patches/100_dont_treat_tilda_as_a_relative_path.patch 1970-01-01 00:00:00 +0000
18+++ debian/patches/100_dont_treat_tilda_as_a_relative_path.patch 2011-01-09 17:11:23 +0000
19@@ -0,0 +1,27 @@
20+From: Omer Akram <om26er@ubuntu.com>
21+Author: Cosimo Cecchi <cosimoc@gnome.org>
22+Subject: Location-entry: don't treat '~' as a relative path.
23+Origin: http://git.gnome.org/browse/nautilus/commit/?id=67d0cbaf0ed7a8f25b3a47abbbaf0feba990e404
24+Bug: https://bugs.gnome.org/628802
25+Bug-Ubuntu: https://launchpad.net/bugs/630512
26+
27+--- a/src/nautilus-location-entry.c
28++++ b/src/nautilus-location-entry.c
29+@@ -89,7 +89,7 @@ try_to_expand_path (gpointer callback_data)
30+ user_location_length = g_utf8_strlen (user_location, -1);
31+ entry->details->idle_id = 0;
32+
33+- if (!g_path_is_absolute (user_location)) {
34++ if (!g_path_is_absolute (user_location) && user_location[0] != '~') {
35+ absolute_location = g_build_filename (entry->details->current_directory, user_location, NULL);
36+ suffix = g_filename_completer_get_completion_suffix (entry->details->completer,
37+ absolute_location);
38+@@ -336,7 +336,7 @@ nautilus_location_entry_activate (GtkEntry *entry)
39+ if (entry_text != NULL && *entry_text != '\0') {
40+ uri_scheme = g_uri_parse_scheme (entry_text);
41+
42+- if (!g_path_is_absolute (entry_text) && uri_scheme == NULL) {
43++ if (!g_path_is_absolute (entry_text) && uri_scheme == NULL && entry_text[0] != '~') {
44+ /* Fix non absolute paths */
45+ full_path = g_build_filename (loc_entry->details->current_directory, entry_text, NULL);
46+ gtk_entry_set_text (entry, full_path);
47
48=== modified file 'debian/patches/series'
49--- debian/patches/series 2010-11-05 11:09:49 +0000
50+++ debian/patches/series 2011-01-09 17:11:23 +0000
51@@ -14,4 +14,4 @@
52 95_no-initial-fade.patch
53 96_git_unmount_crash.patch
54 99_ltmain_as-needed.patch
55-
56+100_dont_treat_tilda_as_a_relative_path.patch

Subscribers

People subscribed via source and target branches

to all changes: