[arch-commits] Commit in transmission/trunk (2 files)

Evangelos Foutras foutrelis at nymeria.archlinux.org
Sat Jan 26 16:23:53 UTC 2013


    Date: Saturday, January 26, 2013 @ 17:23:53
  Author: foutrelis
Revision: 176030

upgpkg: transmission 2.76-2

Fix 2.76 regression; probably fixes FS#33572.

Added:
  transmission/trunk/transmission-2.76-fix-regression.patch
Modified:
  transmission/trunk/PKGBUILD

----------------------------------------+
 PKGBUILD                               |   11 ++++++++---
 transmission-2.76-fix-regression.patch |   26 ++++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-01-26 16:18:55 UTC (rev 176029)
+++ PKGBUILD	2013-01-26 16:23:53 UTC (rev 176030)
@@ -4,22 +4,27 @@
 pkgbase=transmission
 pkgname=('transmission-cli' 'transmission-gtk' 'transmission-qt')
 pkgver=2.76
-pkgrel=1
+pkgrel=2
 arch=('i686' 'x86_64')
 url="http://www.transmissionbt.com/"
 license=('MIT')
 makedepends=('gtk3' 'intltool' 'curl' 'qt' 'libevent')
 source=(http://mirrors.m0k.org/transmission/files/$pkgbase-$pkgver.tar.xz
         transmissiond transmissiond.conf transmission.systemd
-        transmission.tmpfiles)
+        transmission.tmpfiles
+        transmission-2.76-fix-regression.patch)
 md5sums=('9abbffe29ce9b5ee68a116d293c51111'
          '7d6186ee2a852ae3d44980f05063e194'
          'db72b02fee139e8ab416324e6c044d76'
          '5c289c8901221a94be74665368ab5c2c'
-         '23f2320361ad54373c3a4551ef634fe8')
+         '23f2320361ad54373c3a4551ef634fe8'
+         '894b1332cf651c15d593aed0b51dbdd6')
 build() {
   cd $pkgbase-$pkgver
 
+  # https://trac.transmissionbt.com/ticket/5215
+  patch -Np2 -i "$srcdir/transmission-2.76-fix-regression.patch"
+
   ./configure --prefix=/usr
   make
   pushd qt

Added: transmission-2.76-fix-regression.patch
===================================================================
--- transmission-2.76-fix-regression.patch	                        (rev 0)
+++ transmission-2.76-fix-regression.patch	2013-01-26 16:23:53 UTC (rev 176030)
@@ -0,0 +1,26 @@
+Index: branches/2.7x/cli/cli.c
+===================================================================
+--- branches/2.7x/cli/cli.c	(revision 13784)
++++ branches/2.7x/cli/cli.c	(revision 13794)
+@@ -268,14 +268,12 @@
+     {
+       if (!tr_fileExists (str, NULL))
+-        tr_mkdirp (str, 0700);
+-
+-      if (tr_fileExists (str, NULL))
+         {
+-          tr_bencDictAddStr (&settings, TR_PREFS_KEY_DOWNLOAD_DIR, str);
+-        }
+-      else
+-        {
+-          fprintf (stderr, "Unable to create download directory \"%s\"!\n", str);
+-          return EXIT_FAILURE;
++          tr_mkdirp (str, 0700);
++
++          if (!tr_fileExists (str, NULL))
++            {
++              fprintf (stderr, "Unable to create download directory \"%s\"!\n", str);
++              return EXIT_FAILURE;
++            }
+         }
+     }




More information about the arch-commits mailing list