summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-17 11:22:42 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-17 11:22:42 +0000
commit87c620abf3f30f64666df34cfa04143a7ad77c48 (patch)
tree95f94bc80ed153603f9cf78a09300b5346a6bfd7
parent6f18c86d142b24975f4a49c736e86242fa3cd834 (diff)
downloadurpmi-87c620abf3f30f64666df34cfa04143a7ad77c48.tar
urpmi-87c620abf3f30f64666df34cfa04143a7ad77c48.tar.gz
urpmi-87c620abf3f30f64666df34cfa04143a7ad77c48.tar.bz2
urpmi-87c620abf3f30f64666df34cfa04143a7ad77c48.tar.xz
urpmi-87c620abf3f30f64666df34cfa04143a7ad77c48.zip
(write_urpmdb) copy updates descriptions too (usefull for rpmdrake)
-rw-r--r--NEWS1
-rw-r--r--urpm/bug_report.pm3
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 4b315af6..402a5014 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- when using --bug,
o copy /root/.rpmdrake too
+ o copy updates descriptions too
Version 6.11 - 11 September 2008, Pascal "Pixel" Rigaux
diff --git a/urpm/bug_report.pm b/urpm/bug_report.pm
index afc874aa..5b120f97 100644
--- a/urpm/bug_report.pm
+++ b/urpm/bug_report.pm
@@ -31,6 +31,9 @@ sub write_urpmdb {
if (urpm::media::is_valid_medium($_)) {
system('cp', urpm::media::any_synthesis($urpm, $_),
"$bug_report_dir/" . urpm::media::synthesis($_)) == 0 or $urpm->{fatal}(1, "failed to copy $_->{name} synthesis");
+ my $descr_file = urpm::media::statedir_descriptions($urpm, $_);
+ system('cp', $descr_file,
+ "$bug_report_dir/") if -e $descr_file;
}
}
#- fake configuration written to convert virtual media on the fly.