[Python-modules-commits] r6462 - in packages/pyvorbis/trunk/debian/patches (2 files)

stew at users.alioth.debian.org stew at users.alioth.debian.org
Sat Sep 6 17:08:56 UTC 2008


    Date: Saturday, September 6, 2008 @ 17:08:53
  Author: stew
Revision: 6462

add patch to fix ogg123 example for python2.5

Added:
  packages/pyvorbis/trunk/debian/patches/02_whrandom_gone.dpatch
Modified:
  packages/pyvorbis/trunk/debian/patches/00list

Modified: packages/pyvorbis/trunk/debian/patches/00list
===================================================================
--- packages/pyvorbis/trunk/debian/patches/00list	2008-09-06 16:42:00 UTC (rev 6461)
+++ packages/pyvorbis/trunk/debian/patches/00list	2008-09-06 17:08:53 UTC (rev 6462)
@@ -1 +1,2 @@
 01_previous_changes
+02_whrandom_gone

Added: packages/pyvorbis/trunk/debian/patches/02_whrandom_gone.dpatch
===================================================================
--- packages/pyvorbis/trunk/debian/patches/02_whrandom_gone.dpatch	                        (rev 0)
+++ packages/pyvorbis/trunk/debian/patches/02_whrandom_gone.dpatch	2008-09-06 17:08:53 UTC (rev 6462)
@@ -0,0 +1,29 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_whrandom_gone.dpatch by  <stew at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: whrandom in python2.4 is deprecated, and in python2.5 is gone
+## DP: this patch uses the 'random' module which is a drop-in replacement
+
+ at DPATCH@
+diff -urNad pyvorbis-1.3~/test/ogg123.py pyvorbis-1.3/test/ogg123.py
+--- pyvorbis-1.3~/test/ogg123.py	2008-09-06 12:57:12.000000000 -0400
++++ pyvorbis-1.3/test/ogg123.py	2008-09-06 12:57:51.000000000 -0400
+@@ -17,7 +17,7 @@
+ import string
+ import re
+ import os
+-import whrandom
++import random
+ import time
+ 
+ import ogg.vorbis
+@@ -189,7 +189,7 @@
+             verbose = 0
+ 
+         elif arg == '-z' or arg == '--shuffle':
+-            ri = whrandom.randrange
++            ri = random.randrange
+             for pos in range(len(args)):
+                 newpos = ri(pos, len(args))
+                 tmp = args[pos]


Property changes on: packages/pyvorbis/trunk/debian/patches/02_whrandom_gone.dpatch
___________________________________________________________________
Name: svn:executable
   + *




More information about the Python-modules-commits mailing list