[Debian-tex-commits] SVN tex-common commit + diffs: r2604 - tex-common/trunk/scripts

Norbert Preining preining at alioth.debian.org
Wed Mar 21 18:21:09 CET 2007


Author: preining
Date: 2007-03-21 17:21:08 +0000 (Wed, 21 Mar 2007)
New Revision: 2604

Modified:
   tex-common/trunk/scripts/dh_installtex
Log:
more dh_installtex hacking, we have to split @fmtdata and @postrmfmtdata
since the generation only needs the format, the postrm engine and format


Modified: tex-common/trunk/scripts/dh_installtex
===================================================================
--- tex-common/trunk/scripts/dh_installtex	2007-03-21 17:14:56 UTC (rev 2603)
+++ tex-common/trunk/scripts/dh_installtex	2007-03-21 17:21:08 UTC (rev 2604)
@@ -552,13 +552,15 @@
 
 	my @fmtpairs = ();
 	my @fmtdata = ();
+	my @postrmfmtdata = ();
 	if (defined($data{"format"})) {
 		@fmtpairs = @{$data{"format"}};
 	}
  installformatlink: do {
 	foreach my $pair (@fmtpairs) {
 		my ($format,$engine) = $pair =~ m/^(.*)\t(.*)$/;
-		push @fmtdata, "$engine/$format";
+		push @postrmfmtdata, "$engine/$format";
+		push @postrmfmtdata, "$format";
 		push @fmtdata, "$format";
 		if ($doformatlinks && ($format ne $engine)) {
 		  my $formatlink = "$tmp/usr/bin/$format";
@@ -574,6 +576,7 @@
 
 	if ($#addbuildformats >= 0) {
 		push @fmtdata, @addbuildformats;
+		push @postrmfmtdata, @addbuildformats;
 	}
 	if ($doallformats == 1) {
 		# in case we have allformats to do we ignore
@@ -599,7 +602,7 @@
 		autoscript($package, "postrm",   "postrm-texlsr", "s|#TEXMFTREES#|@foo|");
 		if ($dothefullstuff) {
 			autoscript($package, "postinst", "postinst-tex", "s|#FORMATS#|@fmtdata|; s|#WHATTODO#|@whattodo|");
-			autoscript($package, "postrm",   "postrm-tex", "s|#FORMATS#|@fmtdata|; s|#WHATTODO#|@whattodo|");
+			autoscript($package, "postrm",   "postrm-tex", "s|#FORMATS#|@postrmfmtdata|; s|#WHATTODO#|@whattodo|");
 		}
 	}
 




More information about the Debian-tex-commits mailing list