public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/transmission] epel10: Added patch to support default user download directory (Bastien Nocera)
@ 2026-07-20 20:36 Denis Leroy
  0 siblings, 0 replies; only message in thread
From: Denis Leroy @ 2026-07-20 20:36 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/transmission
Branch : epel10
Commit : b7f9f91e8c39bd92020096992a066dc7d459b3f9
Author : Denis Leroy <denis@fedoraproject.org>
Date   : 2007-09-12T10:45:52+00:00
Stats  : +20/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/transmission/c/b7f9f91e8c39bd92020096992a066dc7d459b3f9?branch=epel10

Log:
Added patch to support default user download directory (Bastien Nocera)

---
diff --git a/transmission-0.81-downloaddir.patch b/transmission-0.81-downloaddir.patch
new file mode 100644
index 0000000..73227b4
--- /dev/null
+++ b/transmission-0.81-downloaddir.patch
@@ -0,0 +1,17 @@
+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;

diff --git a/transmission.spec b/transmission.spec
index 444e85a..8367d6f 100644
--- a/transmission.spec
+++ b/transmission.spec
@@ -9,6 +9,7 @@ License:        MIT
 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 @@ back-end.
 %prep
 %setup -q -c
 %patch0 -p1 -b .manpath
+%patch1 -p0 -b .dwnldir
 
 
 %build
@@ -70,6 +72,7 @@ update-desktop-database > /dev/null 2>&1 || :
 %changelog
 * Wed Sep 12 2007 Denis Leroy <denis@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@redhat.com> - 0.81-1
 - Update to upstream 0.81

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-20 20:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-20 20:36 [rpms/transmission] epel10: Added patch to support default user download directory (Bastien Nocera) Denis Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox