aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--NEWS7
-rw-r--r--genhdlist21
2 files changed, 8 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 2f57146..0115694 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,10 @@
+- genhdlist2:
+ o add xml header to xml files generated
+
+- parsehdlist, rpm2header
+ o fix support for rpm5
+ o update deprecated code
+
- gendistrib:
o if "xml-info" is set in media.cfg, pass --xml-info to genhdlist2
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;
}