summaryrefslogtreecommitdiffstats
path: root/urpm/bug_report.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-19 12:16:49 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-19 12:16:49 +0000
commit3880463a92142896704deca4d341af93be762b84 (patch)
tree083ddaa4280c8f7bd74b0619ebe5d40fd4a9d038 /urpm/bug_report.pm
parentfa957b2abb16441c131d8242b22579ca63d70c01 (diff)
downloadurpmi-3880463a92142896704deca4d341af93be762b84.tar
urpmi-3880463a92142896704deca4d341af93be762b84.tar.gz
urpmi-3880463a92142896704deca4d341af93be762b84.tar.bz2
urpmi-3880463a92142896704deca4d341af93be762b84.tar.xz
urpmi-3880463a92142896704deca4d341af93be762b84.zip
- all tools:
o drop hdlist support (will be replaced with xml media_info)
Diffstat (limited to 'urpm/bug_report.pm')
-rw-r--r--urpm/bug_report.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/urpm/bug_report.pm b/urpm/bug_report.pm
index f4265870..d6aeb492 100644
--- a/urpm/bug_report.pm
+++ b/urpm/bug_report.pm
@@ -27,13 +27,10 @@ sub rpmdb_to_synthesis {
sub write_urpmdb {
my ($urpm, $bug_report_dir) = @_;
- require URPM::Build;
foreach (@{$urpm->{media}}) {
- #- take care of virtual medium this way.
- #- now build directly synthesis file, this is by far the simplest method.
if (urpm::media::is_valid_medium($_)) {
- $urpm->build_synthesis(start => $_->{start}, end => $_->{end}, synthesis => "$bug_report_dir/synthesis." . urpm::media::_hdlist($_));
- $urpm->{log}(N("built hdlist synthesis file for medium \"%s\"", $_->{name}));
+ system('cp', urpm::media::any_synthesis($urpm, $_),
+ "$bug_report_dir/" . urpm::media::_synthesis($_)) == 0 or $urpm->{fatal}(1, "failed to copy $_->{name} synthesis");
}
}
#- fake configuration written to convert virtual media on the fly.