[xml/sgml-commit] r674 - in packages/xml-core/trunk: debhelper debian

Daniel Leidert dleidert-guest at alioth.debian.org
Sun Mar 11 06:00:59 CET 2007


Author: dleidert-guest
Date: 2007-03-11 05:00:59 +0000 (Sun, 11 Mar 2007)
New Revision: 674

Modified:
   packages/xml-core/trunk/debhelper/dh_installxmlcatalogs
   packages/xml-core/trunk/debian/changelog
Log:
* debhelper/dh_installxmlcatalogs: Added a small code snippt to add the
  /etc/xml directory to avoid failing installations, if /etc/xml is missing
  (closes: #411770). Thanks to Dmitry Rutsky for the report. The patch is
  based on the the solution used by dh_installcatalogs.



Modified: packages/xml-core/trunk/debhelper/dh_installxmlcatalogs
===================================================================
--- packages/xml-core/trunk/debhelper/dh_installxmlcatalogs	2007-03-11 04:49:07 UTC (rev 673)
+++ packages/xml-core/trunk/debhelper/dh_installxmlcatalogs	2007-03-11 05:00:59 UTC (rev 674)
@@ -288,6 +288,11 @@
 			addsubstvar( $package,
 				     "misc:Depends", "xml-core", ">= $xmlcorever" );
 
+			# Make sure /etc/xml exists (see http://bugs.debian.org/411770).
+			if (! -d "$tmpdir/etc/xml") {
+				doit("install","-d","-m755","$tmpdir/etc/xml");
+			}
+
 		}
 	}
 }

Modified: packages/xml-core/trunk/debian/changelog
===================================================================
--- packages/xml-core/trunk/debian/changelog	2007-03-11 04:49:07 UTC (rev 673)
+++ packages/xml-core/trunk/debian/changelog	2007-03-11 05:00:59 UTC (rev 674)
@@ -5,6 +5,10 @@
   [ Daniel Leidert ]
   * debhelper/dh_installxmlcatalogs: Fixed typo in dh_installxmlcatalogs
     manpage (closes: #306719). Thanks to A Costa for the report.
+  * debhelper/dh_installxmlcatalogs: Added a small code snippt to add the
+    /etc/xml directory to avoid failing installations, if /etc/xml is missing
+    (closes: #411770). Thanks to Dmitry Rutsky for the report. The patch is
+    based on the the solution used by dh_installcatalogs.
 
  -- Daniel Leidert (dale) <daniel.leidert at wgdd.de>  Sun, 11 Mar 2007 05:34:09 +0100
 




More information about the debian-xml-sgml-commit mailing list