aboutsummaryrefslogtreecommitdiffstats
path: root/gendistrib
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2009-07-25 22:24:32 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2009-07-25 22:24:32 +0000
commit647d31193a09851c68af7d545ae11515341bc414 (patch)
treefafa6e13999576e5db3e2099a78a6f7e50e9220b /gendistrib
parent73275bd5abf49139ce27fd017718c77d078b075f (diff)
downloadrpmtools-647d31193a09851c68af7d545ae11515341bc414.tar
rpmtools-647d31193a09851c68af7d545ae11515341bc414.tar.gz
rpmtools-647d31193a09851c68af7d545ae11515341bc414.tar.bz2
rpmtools-647d31193a09851c68af7d545ae11515341bc414.tar.xz
rpmtools-647d31193a09851c68af7d545ae11515341bc414.zip
add support for custom compression filter used for synthesis too
Diffstat (limited to 'gendistrib')
-rwxr-xr-xgendistrib6
1 files changed, 4 insertions, 2 deletions
diff --git a/gendistrib b/gendistrib
index 3879571..5ac65ed 100755
--- a/gendistrib
+++ b/gendistrib
@@ -102,7 +102,7 @@ foreach my $m ($distrib->listmedia) {
synthesis2 => $distrib->getfullpath($m, 'synthesis'),
pubkey2 => $distrib->getfullpath($m, 'pubkey'),
hdlist => "$path/media_info/hdlist.cz",
- synthesis => "$path/media_info/synthesis.hdlist.cz",
+ synthesis => "$path/media_info/synthesis.hdlist" . $distrib->getvalue($m, 'synthesis-suffix'),
pubkey => "$path/media_info/pubkey",
noneedrebuild => $blind ? 0 : $distrib->check_index_sync($m, 'formedia'),
};
@@ -137,16 +137,18 @@ if ($noemptymedia) {
}
}
+my $synthesis_filter = $distrib->getvalue(undef, 'synthesis-filter');
+my $xml_info_filter = $distrib->getvalue(undef, 'xml-info-filter');
foreach my $e (grep { !$_->{noneedrebuild} } @hdlists) {
print STDERR qq(building hdlist & synthesis for medium "$e->{descr}"\n) unless $nooutput;
my $file_deps = "$destinfodir/file-deps";
- my $xml_info_filter = $distrib->getvalue($e->{media}, 'xml-info-filter');
my $options = join(' ',
'--allow-empty-media',
$nooutput ? '--quiet' : (),
$nobadrpm ? '--no-bad-rpm' : (),
$nomd5sum ? "--no-md5sum" : (),
$distrib->getvalue($e->{media}, 'xml-info') ? '--xml-info' : (),
+ $synthesis_filter ? "--synthesis-filter \'$synthesis_filter\'" : (),
$xml_info_filter ? "--xml-info-filter \'$xml_info_filter\'" : (),
-e $file_deps ? "--file-deps $file_deps" : (),
);