aboutsummaryrefslogtreecommitdiffstats
path: root/genhdlist2
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2008-09-11 09:08:54 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2008-09-11 09:08:54 +0000
commit79994bb2bdcb9e48758a8160104e4ddbd8f37d58 (patch)
treeff01355fbef21058355c37f52ef4ee8e0ac45837 /genhdlist2
parenta20d462e8e97cfa733af4642fb8fd2375f06ce2e (diff)
downloadrpmtools-79994bb2bdcb9e48758a8160104e4ddbd8f37d58.tar
rpmtools-79994bb2bdcb9e48758a8160104e4ddbd8f37d58.tar.gz
rpmtools-79994bb2bdcb9e48758a8160104e4ddbd8f37d58.tar.bz2
rpmtools-79994bb2bdcb9e48758a8160104e4ddbd8f37d58.tar.xz
rpmtools-79994bb2bdcb9e48758a8160104e4ddbd8f37d58.zip
add xml header to xml files generated
Diffstat (limited to 'genhdlist2')
-rw-r--r--genhdlist21
1 files changed, 1 insertions, 0 deletions
diff --git a/genhdlist2 b/genhdlist2
index d42158d..98e20e5 100644
--- a/genhdlist2
+++ b/genhdlist2
@@ -226,6 +226,7 @@ sub open_xml_lzma {
my ($file) = @_;
open(my $F, "| lzma -5 > $file") or die "can't open $file\n";
binmode $F, ':utf8';
+ print $F qq(<?xml version="1.0" encoding="utf-8"?>\n);
print $F "<media_info>";
$F;
}