[arch-commits] Commit in kdenetwork/kde-unstable (2 files)

Andrea Scarpino andrea at archlinux.org
Sun Jun 27 13:32:24 UTC 2010


    Date: Sunday, June 27, 2010 @ 09:32:24
  Author: andrea
Revision: 84212

add torrent support in kget (FS#19995)

Added:
  kdenetwork/kde-unstable/fix-libktorrent-error.patch
Modified:
  kdenetwork/kde-unstable/PKGBUILD

-----------------------------+
 PKGBUILD                    |   13 +++++++++----
 fix-libktorrent-error.patch |   30 ++++++++++++++++++++++++++++++
 2 files changed, 39 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-06-27 12:23:54 UTC (rev 84211)
+++ PKGBUILD	2010-06-27 13:32:24 UTC (rev 84212)
@@ -11,7 +11,7 @@
          'kdenetwork-krdc'
          'kdenetwork-krfb')
 pkgver=4.4.90
-pkgrel=1
+pkgrel=2
 arch=('i686' 'x86_64')
 url='http://www.kde.org'
 license=('GPL' 'LGPL' 'FDL')
@@ -19,11 +19,16 @@
 makedepends=('pkgconfig' 'cmake' 'automoc4' 'boost' 'speex' 'ortp' 'libotr'
 	'qca-ossl' 'kdebase-workspace' 'kdebase-lib' 'libvncserver' 'libmsn'
 	'ppp' 'libv4l' 'libidn' 'rdesktop' 'qimageblitz' 'libxdamage' 'libgadu'
-	'telepathy-qt4' 'docbook-xsl')
-source=("http://download.kde.org/unstable/${pkgver}/src/${pkgbase}-${pkgver}.tar.bz2")
-sha1sums=('7e9e5c65ede992405af8c0e950211e66724759db')
+	'telepathy-qt4' 'docbook-xsl' 'libktorrent')
+source=("http://download.kde.org/unstable/${pkgver}/src/${pkgbase}-${pkgver}.tar.bz2"
+	'fix-libktorrent-error.patch')
+sha1sums=('7e9e5c65ede992405af8c0e950211e66724759db'
+	'd2827387cc01adb30af875eb1f2a799c036601be')
 
 build() {
+	cd ${srcdir}/${pkgbase}-${pkgver}
+	patch -Np1 -i ${srcdir}/fix-libktorrent-error.patch
+
 	cd ${srcdir}
 	mkdir build
 	cd build

Added: fix-libktorrent-error.patch
===================================================================
--- fix-libktorrent-error.patch	                        (rev 0)
+++ fix-libktorrent-error.patch	2010-06-27 13:32:24 UTC (rev 84212)
@@ -0,0 +1,30 @@
+Index: kdenetwork/kget/transfer-plugins/bittorrent/scandlg.cpp
+===================================================================
+--- kdenetwork/kget/transfer-plugins/bittorrent/scandlg.cpp	(revision 1138806)
++++ kdenetwork/kget/transfer-plugins/bittorrent/scandlg.cpp	(revision 1138807)
+@@ -81,6 +81,11 @@
+ 		}
+ 	}
+ 
++	void ScanDlg::error(const QString &err)
++	{
++		KMessageBox::error(0,i18n("Error scanning data: %1",err));
++	}
++
+ 	void ScanDlg::execute(bt::TorrentInterface* tc,bool silently)
+ 	{
+ 		m_torrent_label->setText(i18n("Scanning data of <b>%1</b> :",tc->getStats().torrent_name));
+Index: kdenetwork/kget/transfer-plugins/bittorrent/scandlg.h
+===================================================================
+--- kdenetwork/kget/transfer-plugins/bittorrent/scandlg.h	(revision 1138806)
++++ kdenetwork/kget/transfer-plugins/bittorrent/scandlg.h	(revision 1138807)
+@@ -59,6 +59,9 @@
+ 		/// Handle the close event
+ 		virtual void closeEvent(QCloseEvent* e);
+ 
++		/// Report an error
++		virtual void error(const QString &err);
++
+ 	protected slots:
+ 		virtual void reject();
+ 		virtual void accept();




More information about the arch-commits mailing list