rpms/gvfs/devel gvfs-1.1.7-gdu-computer-expose-devices.patch, NONE, 1.1 gvfs.spec, 1.112, 1.113
Tomas Bzatek
tbzatek at fedoraproject.org
Mon Mar 9 16:24:32 UTC 2009
- Previous message (by thread): rpms/selinux-policy/devel modules-minimum.conf, 1.16, 1.17 modules-mls.conf, 1.50, 1.51 modules-targeted.conf, 1.118, 1.119 policy-20090105.patch, 1.55, 1.56 selinux-policy.spec, 1.801, 1.802
- Next message (by thread): rpms/auto-buildrequires/devel .cvsignore, 1.2, 1.3 auto-buildrequires.spec, 1.1, 1.2 sources, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: tbzatek
Update of /cvs/extras/rpms/gvfs/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22410
Modified Files:
gvfs.spec
Added Files:
gvfs-1.1.7-gdu-computer-expose-devices.patch
Log Message:
* Mon Mar 9 2009 Tomas Bzatek <tbzatek at redhat.com> - 1.1.7-5
- Expose device file attribute for all items in computer://
gvfs-1.1.7-gdu-computer-expose-devices.patch:
--- NEW FILE gvfs-1.1.7-gdu-computer-expose-devices.patch ---
diff -up gvfs-1.1.7/daemon/gvfsbackendcomputer.c.orig gvfs-1.1.7/daemon/gvfsbackendcomputer.c
--- gvfs-1.1.7/daemon/gvfsbackendcomputer.c.orig 2009-02-10 13:56:11.000000000 +0100
+++ gvfs-1.1.7/daemon/gvfsbackendcomputer.c 2009-03-09 16:07:22.000000000 +0100
@@ -595,11 +595,16 @@ try_open_for_read (GVfsBackend *backend,
return TRUE;
}
+/* TODO: push upstream */
+#define G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE "mountable::unix-device-file"
+
+
static void
file_info_from_file (ComputerFile *file,
GFileInfo *info)
{
char *uri;
+ char *device_file = NULL;
g_file_info_set_name (info, file->filename);
g_file_info_set_display_name (info, file->display_name);
@@ -627,6 +632,18 @@ file_info_from_file (ComputerFile *file,
g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE, FALSE);
g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE, FALSE);
g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH, FALSE);
+
+ if (file->volume)
+ /* Take volume as a precedence */
+ device_file = g_volume_get_identifier (file->volume, "unix-device");
+ else
+ if (file->drive)
+ device_file = g_drive_get_identifier (file->drive, "unix-device");
+ if (device_file)
+ {
+ g_file_info_set_attribute_string (info, G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE, device_file);
+ g_free (device_file);
+ }
}
static gboolean
Index: gvfs.spec
===================================================================
RCS file: /cvs/extras/rpms/gvfs/devel/gvfs.spec,v
retrieving revision 1.112
retrieving revision 1.113
diff -u -r1.112 -r1.113
--- gvfs.spec 6 Mar 2009 13:56:35 -0000 1.112
+++ gvfs.spec 9 Mar 2009 16:24:02 -0000 1.113
@@ -1,7 +1,7 @@
Summary: Backends for the gio framework in GLib
Name: gvfs
Version: 1.1.7
-Release: 4%{?dist}
+Release: 5%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
URL: http://www.gtk.org
@@ -37,6 +37,9 @@
# http://bugzilla.gnome.org/show_bug.cgi?id=573826
Patch3: gvfs-1.1.7-gdu-monitor-empty-drives.patch
+# http://bugzilla.gnome.org/show_bug.cgi?id=573826
+Patch4: gvfs-1.1.7-gdu-computer-expose-devices.patch
+
%description
The gvfs package provides backend implementations for the gio
@@ -121,6 +124,7 @@
%patch1 -p0 -b .archive-integration
%patch2 -p0 -b .gdu
%patch3 -p1 -b .gdu-volumes-typo
+%patch4 -p1 -b .computer-gdu
%build
@@ -264,6 +268,9 @@
%changelog
+* Mon Mar 9 2009 Tomas Bzatek <tbzatek at redhat.com> - 1.1.7-5
+- Expose device file attribute for all items in computer://
+
* Fri Mar 6 2009 Tomas Bzatek <tbzatek at redhat.com> - 1.1.7-4
- Fix volume lists not filled correctly
- Previous message (by thread): rpms/selinux-policy/devel modules-minimum.conf, 1.16, 1.17 modules-mls.conf, 1.50, 1.51 modules-targeted.conf, 1.118, 1.119 policy-20090105.patch, 1.55, 1.56 selinux-policy.spec, 1.801, 1.802
- Next message (by thread): rpms/auto-buildrequires/devel .cvsignore, 1.2, 1.3 auto-buildrequires.spec, 1.1, 1.2 sources, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list