[Python-modules-commits] r6832 - in packages/python-uniconvertor/trunk/debian (4 files)

awen-guest at users.alioth.debian.org awen-guest at users.alioth.debian.org
Tue Nov 4 11:16:35 UTC 2008


    Date: Tuesday, November 4, 2008 @ 11:16:35
  Author: awen-guest
Revision: 6832

Improve font warnings

Added:
  packages/python-uniconvertor/trunk/debian/README.Debian
  packages/python-uniconvertor/trunk/debian/patches/03_fontwarning.dpatch
Modified:
  packages/python-uniconvertor/trunk/debian/changelog
  packages/python-uniconvertor/trunk/debian/patches/00list

Added: packages/python-uniconvertor/trunk/debian/README.Debian
===================================================================
--- packages/python-uniconvertor/trunk/debian/README.Debian	                        (rev 0)
+++ packages/python-uniconvertor/trunk/debian/README.Debian	2008-11-04 11:16:35 UTC (rev 6832)
@@ -0,0 +1,6 @@
+--- Font support ---
+UniConvertor doesn't have font support yet and should be used against path-based files only.
+
+See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504223
+
+SVG (and possibly other files as well) can be converted to path-based files in inkscape.

Modified: packages/python-uniconvertor/trunk/debian/changelog
===================================================================
--- packages/python-uniconvertor/trunk/debian/changelog	2008-11-04 08:44:20 UTC (rev 6831)
+++ packages/python-uniconvertor/trunk/debian/changelog	2008-11-04 11:16:35 UTC (rev 6832)
@@ -3,12 +3,14 @@
   [ Andreas Wenning ]
   * Modified debian/control and debian/uniconvertor.pod to reflect new
     output formats.
+  * Added 03_fontwarning.dpatch to display a better font warning; this now
+    points to README.Debian explaining the issue. (Closes: #504477)
 
   [ Sandro Tosi ]
   * debian/control
     - switch Vcs-Browser field to viewsvn
 
- -- Andreas Wenning <awen at awen.dk>  Tue, 28 Oct 2008 10:00:03 +0100
+ -- Andreas Wenning <awen at awen.dk>  Tue, 04 Nov 2008 11:54:37 +0100
 
 python-uniconvertor (1.1.3-2) unstable; urgency=low
 

Modified: packages/python-uniconvertor/trunk/debian/patches/00list
===================================================================
--- packages/python-uniconvertor/trunk/debian/patches/00list	2008-11-04 08:44:20 UTC (rev 6831)
+++ packages/python-uniconvertor/trunk/debian/patches/00list	2008-11-04 11:16:35 UTC (rev 6832)
@@ -1,2 +1,3 @@
 01_rename_uniconv.dpatch
 02_exec_uniconvertor.dpatch
+03_fontwarning.dpatch

Added: packages/python-uniconvertor/trunk/debian/patches/03_fontwarning.dpatch
===================================================================
--- packages/python-uniconvertor/trunk/debian/patches/03_fontwarning.dpatch	                        (rev 0)
+++ packages/python-uniconvertor/trunk/debian/patches/03_fontwarning.dpatch	2008-11-04 11:16:35 UTC (rev 6832)
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03_fontwarning.dpatch by Andreas Wenning <awen at awen.dk>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad python-uniconvertor-1.1.3~/src/app/Graphics/font.py python-uniconvertor-1.1.3/src/app/Graphics/font.py
+--- python-uniconvertor-1.1.3~/src/app/Graphics/font.py	2008-02-10 23:51:39.000000000 +0100
++++ python-uniconvertor-1.1.3/src/app/Graphics/font.py	2008-11-04 12:04:42.000000000 +0100
+@@ -423,6 +423,8 @@
+ 			_warned_about_font[fontname] = 1
+ 		if fontname != config.preferences.fallback_font:
+ 			return GetFont(config.preferences.fallback_font)
++		warn(USER, _("Fontsystem not yet implemented in UniConvertor. "
++			"See /usr/share/doc/python-uniconvertor/README.Debian for more info"))
+ 		raise ValueError, 'Cannot find font %s.' % fontname
+ 	return Font(fontname)
+ 


Property changes on: packages/python-uniconvertor/trunk/debian/patches/03_fontwarning.dpatch
___________________________________________________________________
Name: svn:executable
   + *




More information about the Python-modules-commits mailing list