diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-11-09 14:59:36 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-11-09 14:59:36 +0000 |
commit | 52334ed4fe80a680beb64152b3d31b304ed0f2f1 (patch) | |
tree | 4607fa99ad26a813508f6143fd16b00e4d513327 | |
parent | 522f3cdb55b79a7dcb4b5deda38d788360cfba27 (diff) | |
download | rpmtools-52334ed4fe80a680beb64152b3d31b304ed0f2f1.tar rpmtools-52334ed4fe80a680beb64152b3d31b304ed0f2f1.tar.gz rpmtools-52334ed4fe80a680beb64152b3d31b304ed0f2f1.tar.bz2 rpmtools-52334ed4fe80a680beb64152b3d31b304ed0f2f1.tar.xz rpmtools-52334ed4fe80a680beb64152b3d31b304ed0f2f1.zip |
create media/media_info/pubkey_xxx symlink to ../xxx/yyy/media_info/pubkey
-rwxr-xr-x | gendistrib | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -102,8 +102,10 @@ foreach my $m ($distrib->listmedia) { descr => $distrib->getvalue($m, 'name'), hdlist2 => $distrib->getfullpath($m, 'hdlist'), synthesis2 => $distrib->getfullpath($m, 'synthesis'), + pubkey2 => $distrib->getfullpath($m, 'pubkey'), hdlist => "$path/media_info/hdlist.cz", synthesis => "$path/media_info/synthesis.hdlist.cz", + pubkey => "$path/media_info/pubkey", noneedrebuild => $blind ? 0 : $distrib->check_index_sync($m, 'formedia'), noneedredomd5 => $blind ? 0 : $distrib->check_media_md5($m), }; @@ -156,6 +158,8 @@ foreach my $e (grep { !$_->{noneedrebuild} } @hdlists) { foreach my $e (@hdlists) { hdlist_alternate_location($e->{hdlist2}, $e->{hdlist}); hdlist_alternate_location($e->{synthesis2}, $e->{synthesis}); + $e->{pubkey2} =~ s/ /_/g; # workaround MDV::Distribconf issue + hdlist_alternate_location($e->{pubkey2}, $e->{pubkey}) if -e $e->{pubkey}; } if (grep { ! $_->{noneedrebuild} } @hdlists) { |