[texlive-nonbin] 02/03: allow for adding new formats with $pkg.formats.add
This is an automated email from the git hooks/post-receive script.
preining pushed a commit to branch experimental
in repository texlive-nonbin.
commit 80801bbaeceb99fa25ff8c1b5b9ddfb275a85019
Author: Norbert Preining <preining@debian.org>
Date: Sat Apr 30 19:21:40 2016 +0900
allow for adding new formats with $pkg.formats.add
---
all/debian/tpm2deb-bin.pl | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/all/debian/tpm2deb-bin.pl b/all/debian/tpm2deb-bin.pl
index 69bb39f..37bef4b 100755
--- a/all/debian/tpm2deb-bin.pl
+++ b/all/debian/tpm2deb-bin.pl
@@ -248,12 +248,17 @@ sub make_deb_execute_actions {
foreach (@maplines) { print OUTFILE; }
close(OUTFILE);
}
- if ($#formatlines >= 0) {
+ if ($#formatlines >= 0 || (-r "$debdest/$package.formats.add")) {
open(OUTFILE, ">$debdest/$package.formats")
or die("Cannot open $debdest/$package.formats");
@formatlines =
map { $_->[1] } sort { $a->[0] cmp $b->[0] } @formatlines;
foreach (@formatlines) { print OUTFILE; }
+ if (-r "$debdest/$package.formats.add") {
+ open(INFILE, "<$debdest/$package.formats.add") || die("Cannot open: $!");
+ while (<INFILE>) { print OUTFILE; }
+ close(INFILE);
+ }
close(OUTFILE);
}
if ($#languagelines >= 0) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/texlive-nonbin.git
Reply to: