packages: rtorrent/rtorrent-colors.patch, rtorrent/rtorrent-ncurses.patch, ...

lisu lisu at pld-linux.org
Wed May 11 15:21:33 CEST 2011


Author: lisu                         Date: Wed May 11 13:21:33 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- back to stable 0.8.6 version

---- Files affected:
packages/rtorrent:
   rtorrent-colors.patch (1.20 -> 1.21) , rtorrent-ncurses.patch (1.2 -> 1.3) , rtorrent.spec (1.89 -> 1.90) 

---- Diffs:

================================================================
Index: packages/rtorrent/rtorrent-colors.patch
diff -u packages/rtorrent/rtorrent-colors.patch:1.20 packages/rtorrent/rtorrent-colors.patch:1.21
--- packages/rtorrent/rtorrent-colors.patch:1.20	Wed Oct 27 12:36:48 2010
+++ packages/rtorrent/rtorrent-colors.patch	Wed May 11 15:21:28 2011
@@ -73,7 +73,7 @@
 +    core::Download* d = *range.first;
 +
 +    if (d->download()->bytes_done())
-+      ratio = (double)d->info()->up_rate()->total() / (double)d->download()->bytes_done();
++      ratio = (double)d->download()->up_rate()->total() / (double)d->download()->bytes_done();
 +    if (ratio >= 1.0)
 +      col = 1;
 +    else if (ratio >= 0.5)
@@ -83,7 +83,7 @@
 +
 +    position = print_download_title(buffer, last, *range.first, ratio);
 +    m_canvas->print(0, pos, "%c %s", range.first == m_view->focus() ? '*' : ' ', buffer);
-+    if (d->info()->is_open())
++    if (d->download()->is_open())
 +      m_canvas->set_attr(0, pos, m_canvas->get_screen_width(), (d->is_done())?0:A_BOLD,
 +        (d->is_done())?col:4);
 +    pos++;
@@ -94,14 +94,14 @@
      position = print_download_info(buffer, last, *range.first);
 -    m_canvas->print(0, pos++, "%c %s", range.first == m_view->focus() ? '*' : ' ', buffer);
 +    m_canvas->print(0, pos, "%c %s", range.first == m_view->focus() ? '*' : ' ', buffer);
-+    if (!d->info()->is_active())
++    if (!d->download()->is_active())
 +      m_canvas->set_attr(0, pos, m_canvas->get_screen_width(), A_BOLD, 8);
 +    pos++;
  
      position = print_download_status(buffer, last, *range.first);
 -    m_canvas->print(0, pos++, "%c %s", range.first == m_view->focus() ? '*' : ' ', buffer);
 +    m_canvas->print(0, pos, "%c %s", range.first == m_view->focus() ? '*' : ' ', buffer);
-+    if (!d->info()->is_active())
++    if (!d->download()->is_active())
 +      m_canvas->set_attr(0, pos, m_canvas->get_screen_width(), A_BOLD, 8);
 +    pos++;
  
@@ -125,9 +125,9 @@
  
  char*
 -print_download_title(char* first, char* last, core::Download* d) {
--  return print_buffer(first, last, " %s", d->info()->name().c_str());
+-  return print_buffer(first, last, " %s", d->download()->name().c_str());
 +print_download_title(char* first, char* last, core::Download* d, double ratio) {
-+  return print_buffer(first, last, " %-82s  R: %5.2f", d->info()->name().c_str(), ratio);
++  return print_buffer(first, last, " %-82s  R: %5.2f", d->download()->name().c_str(), ratio);
  }
  
  char*
@@ -137,13 +137,13 @@
  
 -  first = print_buffer(first, last, " [%c%c R: %4.2f",
 +  first = print_buffer(first, last, " [%c%c",
-                        rpc::call_command_string("d.tied_to_file", rpc::make_target(d)).empty() ? ' ' : 'T',
--                       rpc::call_command_value("d.ignore_commands", rpc::make_target(d)) == 0 ? ' ' : 'I',
--                       (double)rpc::call_command_value("d.ratio", rpc::make_target(d)) / 1000.0);
-+                       rpc::call_command_value("d.ignore_commands", rpc::make_target(d)) == 0 ? ' ' : 'I');
+                        rpc::call_command_string("d.get_tied_to_file", rpc::make_target(d)).empty() ? ' ' : 'T',
+-                       rpc::call_command_value("d.get_ignore_commands", rpc::make_target(d)) == 0 ? ' ' : 'I',
+-                       (double)rpc::call_command_value("d.get_ratio", rpc::make_target(d)) / 1000.0);
++                       rpc::call_command_value("d.get_ignore_commands", rpc::make_target(d)) == 0 ? ' ' : 'I');
  
    if (d->priority() != 2)
-     first = print_buffer(first, last, " %s]", rpc::call_command_string("d.priority_str", rpc::make_target(d)).c_str());
+     first = print_buffer(first, last, " %s]", rpc::call_command_string("d.get_priority_str", rpc::make_target(d)).c_str());
 @@ -231,17 +230,18 @@
  print_client_version(char* first, char* last, const torrent::ClientInfo& clientInfo) {
    switch (torrent::ClientInfo::version_size(clientInfo.type())) {

================================================================
Index: packages/rtorrent/rtorrent-ncurses.patch
diff -u packages/rtorrent/rtorrent-ncurses.patch:1.2 packages/rtorrent/rtorrent-ncurses.patch:1.3
--- packages/rtorrent/rtorrent-ncurses.patch:1.2	Tue May 10 09:28:39 2011
+++ packages/rtorrent/rtorrent-ncurses.patch	Wed May 11 15:21:28 2011
@@ -1,11 +1,11 @@
---- rtorrent-0.8.8/src/display/canvas.h~	2011-04-07 14:36:10.000000000 +0200
-+++ rtorrent-0.8.8/src/display/canvas.h	2011-05-10 09:23:30.883333501 +0200
+--- rtorrent-0.8.7/src/display/canvas.h~	2010-06-26 14:05:07.000000000 +0200
++++ rtorrent-0.8.7/src/display/canvas.h	2011-03-03 22:17:00.016390072 +0100
 @@ -48,7 +48,7 @@
  public:
    typedef std::vector<Attributes> attributes_list;
  
--  Canvas(int x = 0, int y = 0, int width = 0, int height = 0);
-+  Canvas(int x = 0, int y = 0, int width = 1, int height = 1);
+-  Canvas(int x = 0, int y = 0, int width = 0, int height = 0) :
++  Canvas(int x = 0, int y = 0, int width = 1, int height = 1) :
+     m_window(newwin(height, width, y, x)) {}
    ~Canvas() { delwin(m_window); }
  
-   void                refresh()                                               { wnoutrefresh(m_window); }

================================================================
Index: packages/rtorrent/rtorrent.spec
diff -u packages/rtorrent/rtorrent.spec:1.89 packages/rtorrent/rtorrent.spec:1.90
--- packages/rtorrent/rtorrent.spec:1.89	Tue May 10 09:28:30 2011
+++ packages/rtorrent/rtorrent.spec	Wed May 11 15:21:28 2011
@@ -11,12 +11,13 @@
 Summary:	rTorrent - a console-based BitTorrent client
 Summary(pl.UTF-8):	rTorrent - konsolowy klient BitTorrenta
 Name:		rtorrent
-Version:	0.8.8
+Version:	0.8.6
 Release:	1
+Epoch:		1
 License:	GPL v2+
 Group:		Applications/Networking
 Source0:	http://libtorrent.rakshasa.no/downloads/%{name}-%{version}.tar.gz
-# Source0-md5:	e7927c513872f096c7d72d659ab54ef0
+# Source0-md5:	b804c45c01c40312926bcea6b55bb084
 Patch0:		%{name}-colors.patch
 Patch1:		%{name}-ssl-no-verify.patch
 Patch2:		%{name}-ip_filter.patch
@@ -30,7 +31,7 @@
 BuildRequires:	curl-devel >= 7.12
 BuildRequires:	libstdc++-devel
 BuildRequires:	libtool
-BuildRequires:	libtorrent-devel >= 0.12.8
+BuildRequires:	libtorrent-devel = 0.12.6
 BuildRequires:	ncurses-devel
 BuildRequires:	pkgconfig
 BuildRequires:	sqlite3-devel
@@ -100,6 +101,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.90  2011/05/11 13:21:28  lisu
+- back to stable 0.8.6 version
+
 Revision 1.89  2011/05/10 07:28:30  lisu
 - updated to 0.8.8
 - bumped version of libtorrent-devel BR
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/rtorrent/rtorrent-colors.patch?r1=1.20&r2=1.21&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/rtorrent/rtorrent-ncurses.patch?r1=1.2&r2=1.3&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/rtorrent/rtorrent.spec?r1=1.89&r2=1.90&f=u



More information about the pld-cvs-commit mailing list