rpms/transmission/devel transmission-0.81-downloaddir.patch, NONE, 1.1 transmission.spec, 1.8, 1.9

Denis Leroy (denis) fedora-extras-commits at redhat.com
Wed Sep 12 10:46:31 UTC 2007


Author: denis

Update of /cvs/pkgs/rpms/transmission/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14163

Modified Files:
	transmission.spec 
Added Files:
	transmission-0.81-downloaddir.patch 
Log Message:
Added patch to support default user download directory (Bastien Nocera)

transmission-0.81-downloaddir.patch:

--- NEW FILE transmission-0.81-downloaddir.patch ---
Index: gtk/util.c
===================================================================
--- gtk/util.c	(revision 2629)
+++ gtk/util.c	(working copy)
@@ -319,7 +319,12 @@
 {
     static char * wd = NULL;
     const char * dir = tr_prefs_get( PREF_ID_DIR );
+
     if (NULL == dir) {
+#if GLIB_CHECK_VERSION(2, 13, 7)
+      dir = g_get_user_special_dir(G_USER_DIRECTORY_DOWNLOAD);
+      return dir;
+#endif
       if (NULL == wd)
         wd = g_get_current_dir();
       dir = wd;


Index: transmission.spec
===================================================================
RCS file: /cvs/pkgs/rpms/transmission/devel/transmission.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- transmission.spec	12 Sep 2007 09:15:18 -0000	1.8
+++ transmission.spec	12 Sep 2007 10:45:52 -0000	1.9
@@ -9,6 +9,7 @@
 URL:            http://transmission.m0k.org/
 Source0:        http://download.m0k.org/transmission/files/transmission-%{version}.tar.gz
 Patch0:         transmission-0.71-manpath.patch
+Patch1:         transmission-0.81-downloaddir.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  openssl-devel
@@ -27,6 +28,7 @@
 %prep
 %setup -q -c
 %patch0 -p1 -b .manpath
+%patch1 -p0 -b .dwnldir
 
 
 %build
@@ -70,6 +72,7 @@
 %changelog
 * Wed Sep 12 2007 Denis Leroy <denis at poolshark.org> - 0.82-1
 - Update to upstream 0.82, many bug fixes
+- Added patch to support default user download directory (Bastien Nocera)
 
 * Sat Aug 25 2007 - Bastien Nocera <bnocera at redhat.com> - 0.81-1
 - Update to upstream 0.81




More information about the fedora-extras-commits mailing list