Merge lp:~dobey/ubuntuone-client/inhome-udf into lp:ubuntuone-client

Proposed by dobey
Status: Merged
Merged at revision: not available
Proposed branch: lp:~dobey/ubuntuone-client/inhome-udf
Merge into: lp:ubuntuone-client
Diff against target: 40 lines (+11/-1)
1 file modified
nautilus/ubuntuone-nautilus.c (+11/-1)
To merge this branch: bzr merge lp:~dobey/ubuntuone-client/inhome-udf
Reviewer Review Type Date Requested Status
Guillermo Gonzalez Approve
John Lenton (community) Approve
Review via email: mp+23267@code.launchpad.net

Commit message

Check that the folder is inside $HOME for showing the "Synchronize on" option

To post a comment you must log in.
Revision history for this message
John Lenton (chipaca) :
review: Approve
Revision history for this message
Guillermo Gonzalez (verterok) :
review: Approve
Revision history for this message
John Lenton (chipaca) wrote :
Download full text (16.6 KiB)

The attempt to merge lp:~dobey/ubuntuone-client/inhome-udf into lp:ubuntuone-client failed.Below is the output from the failed tests.

Using saved parent location: bzr+ssh://bazaar.launchpad.net/~ubuntuone-control-tower/ubuntuone-storage-protocol/trunk/
No revisions to pull.
/usr/bin/gnome-autogen.sh
checking for autoconf >= 2.53...
(B testing autoconf2.50... not found.
  testing autoconf... found 2.65
checking for automake >= 1.10...
(B testing automake-1.11... found 1.11.1
checking for libtool >= 1.5...
(B testing libtoolize... found 2.2.6b
checking for intltool >= 0.30...
(B testing intltoolize... found 0.41.0
checking for pkg-config >= 0.14.0...
(B testing pkg-config... found 0.22
Checking for required M4 macros...
(BChecking for forbidden M4 macros...
(BProcessing ./configure.ac
(BRunning libtoolize...
(Blibtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
Running intltoolize...
(BRunning aclocal-1.11...
(BRunning autoconf...
(BRunning autoheader...
(BRunning automake-1.11...
(BRunning ./configure --with-protocol=/home/john/canonical/ubuntuone-storage-protocol/trunk ...
(Bchecking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
c...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'nautilus/ubuntuone-nautilus.c'
2--- nautilus/ubuntuone-nautilus.c 2010-04-12 16:04:11 +0000
3+++ nautilus/ubuntuone-nautilus.c 2010-04-12 20:25:32 +0000
4@@ -677,10 +677,13 @@
5 GList * items = NULL;
6 gchar * path;
7 gchar * item;
8+ gchar * homedir_path;
9 gboolean is_managed, is_root, is_udf, is_public, is_shared, is_pending;
10+ gboolean is_inhome;
11 struct _CBData * cb_data;
12
13 is_managed = is_root = is_udf = is_public = is_shared = is_pending = FALSE;
14+ is_inhome = FALSE;
15
16 if (g_list_length (files) != 1)
17 return NULL;
18@@ -699,6 +702,11 @@
19 if (ubuntuone_is_storagefs (uon, path))
20 is_managed = TRUE;
21
22+ homedir_path = g_strdup_printf ("%s/", g_get_home_dir());
23+ if (strncmp (path, homedir_path, strlen (homedir_path)) == 0)
24+ is_inhome = TRUE;
25+ g_free (homedir_path);
26+
27 if ((item = g_hash_table_lookup (uon->udfs, path)) != NULL) {
28 is_udf = TRUE;
29 if (strcmp (item, UPDATE_PENDING) == 0)
30@@ -769,7 +777,9 @@
31 items = g_list_append (items, item);
32 }
33
34- if (!is_managed && !is_udf && nautilus_file_info_is_directory (file) && (nautilus_file_info_get_file_type (file) != G_FILE_TYPE_SYMBOLIC_LINK)) {
35+ if (is_inhome && !is_managed && !is_udf &&
36+ nautilus_file_info_is_directory (file) &&
37+ (nautilus_file_info_get_file_type (file) != G_FILE_TYPE_SYMBOLIC_LINK)) {
38 NautilusMenuItem * item;
39
40 item = nautilus_menu_item_new ("ubuntuone-udf-create",

Subscribers

People subscribed via source and target branches