[Python-apps-commits] r7799 - in packages/lazygal/trunk/debian (3 files)

nijel at users.alioth.debian.org nijel at users.alioth.debian.org
Wed Nov 16 12:28:31 UTC 2011


    Date: Wednesday, November 16, 2011 @ 12:28:29
  Author: nijel
Revision: 7799

Fix installation of man pages

Added:
  packages/lazygal/trunk/debian/patches/
  packages/lazygal/trunk/debian/patches/manpage-installation.patch
  packages/lazygal/trunk/debian/patches/series

Added: packages/lazygal/trunk/debian/patches/manpage-installation.patch
===================================================================
--- packages/lazygal/trunk/debian/patches/manpage-installation.patch	                        (rev 0)
+++ packages/lazygal/trunk/debian/patches/manpage-installation.patch	2011-11-16 12:28:29 UTC (rev 7799)
@@ -0,0 +1,20 @@
+From: Michal ÄŒihaÅ™ <nijel at debian.org>
+Subject: Fix manpages installation path
+
+--- a/setup.py
++++ b/setup.py
+@@ -77,12 +77,13 @@
+ 
+         for xmlmanpage in self.manpages:
+             manpage = xmlmanpage[:-4] # remove '.xml' at the end
++            section = manpage[-1:]
+             if newer(xmlmanpage, manpage):
+                 cmd = (self.executable, "--nonet", "-o", self.mandir, db2man,
+                        xmlmanpage)
+                 self.spawn(cmd)
+ 
+-            targetpath = os.path.join("share", "man", 'man1')
++            targetpath = os.path.join("share", "man", 'man%s' % section)
+             data_files.append((targetpath, (manpage, ), ))
+ 
+ 

Added: packages/lazygal/trunk/debian/patches/series
===================================================================
--- packages/lazygal/trunk/debian/patches/series	                        (rev 0)
+++ packages/lazygal/trunk/debian/patches/series	2011-11-16 12:28:29 UTC (rev 7799)
@@ -0,0 +1 @@
+manpage-installation.patch




More information about the Python-apps-commits mailing list