[Python-modules-commits] r5318 - in packages/enthought-traits-ui/trunk/debian (6 files)
varun at users.alioth.debian.org
varun at users.alioth.debian.org
Tue May 13 11:57:48 UTC 2008
Date: Tuesday, May 13, 2008 @ 11:57:46
Author: varun
Revision: 5318
Add range_editor.diff patch from upstream (Closes: #478844)
Added:
packages/enthought-traits-ui/trunk/debian/patches/
packages/enthought-traits-ui/trunk/debian/patches/range_editor.diff
packages/enthought-traits-ui/trunk/debian/patches/series
Modified:
packages/enthought-traits-ui/trunk/debian/changelog
packages/enthought-traits-ui/trunk/debian/control
packages/enthought-traits-ui/trunk/debian/rules
Modified: packages/enthought-traits-ui/trunk/debian/changelog
===================================================================
--- packages/enthought-traits-ui/trunk/debian/changelog 2008-05-12 18:12:18 UTC (rev 5317)
+++ packages/enthought-traits-ui/trunk/debian/changelog 2008-05-13 11:57:46 UTC (rev 5318)
@@ -1,3 +1,9 @@
+enthought-traits-ui (2.0.4-3) unstable; urgency=low
+
+ * Add range_editor.diff patch from upstream (Closes: #478844)
+
+ -- Varun Hiremath <varun at debian.org> Tue, 13 May 2008 17:39:23 +0530
+
enthought-traits-ui (2.0.4-2) unstable; urgency=low
[ Sandro Tosi ]
Modified: packages/enthought-traits-ui/trunk/debian/control
===================================================================
--- packages/enthought-traits-ui/trunk/debian/control 2008-05-12 18:12:18 UTC (rev 5317)
+++ packages/enthought-traits-ui/trunk/debian/control 2008-05-13 11:57:46 UTC (rev 5318)
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Uploaders: Ondrej Certik <ondrej at certik.cz>, Varun Hiremath <varun at debian.org>
-Build-Depends: cdbs, debhelper (>= 5), python-all-dev, python-central (>= 0.6), python-setuptools
+Build-Depends: cdbs, debhelper (>= 5), python-all-dev, python-central (>= 0.6), python-setuptools, quilt
Standards-Version: 3.7.3
Homepage: http://code.enthought.com/traits/
XS-Python-Version: >=2.4
Added: packages/enthought-traits-ui/trunk/debian/patches/range_editor.diff
===================================================================
--- packages/enthought-traits-ui/trunk/debian/patches/range_editor.diff (rev 0)
+++ packages/enthought-traits-ui/trunk/debian/patches/range_editor.diff 2008-05-13 11:57:46 UTC (rev 5318)
@@ -0,0 +1,27 @@
+diff -urN enthought-traits-ui-2.0.4.orig/enthought.traits.ui.wx/enthought/traits/ui/wx/range_editor.py enthought-traits-ui-2.0.4/enthought.traits.ui.wx/enthought/traits/ui/wx/range_editor.py
+--- enthought-traits-ui-2.0.4.orig/enthought.traits.ui.wx/enthought/traits/ui/wx/range_editor.py 2008-05-13 17:33:40.000000000 +0530
++++ enthought-traits-ui-2.0.4/enthought.traits.ui.wx/enthought/traits/ui/wx/range_editor.py 2008-05-13 17:34:18.000000000 +0530
+@@ -515,7 +515,10 @@
+ except:
+ fvalue_text = ''
+ fvalue = low
+- ivalue = int( (float( fvalue - low ) / (high - low)) * 10000 )
++ if high > low:
++ ivalue = int( (float( fvalue - low ) / (high - low)) * 10000 )
++ else:
++ ivalue = low
+
+ # Lower limit label:
+ label_lo = wx.StaticText( panel, -1, '999999' )
+@@ -648,7 +651,10 @@
+ self._set_format()
+ self.control.label_lo.SetLabel( self._format % low )
+ self.control.label_hi.SetLabel( self._format % high )
+- ivalue = int( (float( value - low ) / (high - low)) * 10000.0 )
++ if high > low:
++ ivalue = int( (float( value - low ) / (high - low)) * 10000 )
++ else:
++ ivalue = low
+ self.control.slider.SetValue( ivalue )
+ text = self._format % self.value
+ self.control.text.SetValue( text )
Added: packages/enthought-traits-ui/trunk/debian/patches/series
===================================================================
--- packages/enthought-traits-ui/trunk/debian/patches/series (rev 0)
+++ packages/enthought-traits-ui/trunk/debian/patches/series 2008-05-13 11:57:46 UTC (rev 5318)
@@ -0,0 +1 @@
+range_editor.diff
Modified: packages/enthought-traits-ui/trunk/debian/rules
===================================================================
--- packages/enthought-traits-ui/trunk/debian/rules 2008-05-12 18:12:18 UTC (rev 5317)
+++ packages/enthought-traits-ui/trunk/debian/rules 2008-05-13 11:57:46 UTC (rev 5318)
@@ -4,6 +4,7 @@
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
DEB_COMPRESS_EXCLUDE := .py
DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
More information about the Python-modules-commits
mailing list