summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-21 12:30:00 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-21 12:30:00 +0000
commit0a40c54102a7766e7d7ce925ea8409efa74f1036 (patch)
tree1fc2cdeb1c9c7e09ba2141a56dc4194e9c58c883
parenta710a3fc34e0a972c01d45c938aec2f140e1b312 (diff)
downloadurpmi-0a40c54102a7766e7d7ce925ea8409efa74f1036.tar
urpmi-0a40c54102a7766e7d7ce925ea8409efa74f1036.tar.gz
urpmi-0a40c54102a7766e7d7ce925ea8409efa74f1036.tar.bz2
urpmi-0a40c54102a7766e7d7ce925ea8409efa74f1036.tar.xz
urpmi-0a40c54102a7766e7d7ce925ea8409efa74f1036.zip
- urpmi
o fix --bug when there is no /etc/urpmi/prefer.list file
-rw-r--r--NEWS2
-rwxr-xr-xurpmi6
2 files changed, 5 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 2b27f202..510463b9 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- urpmi
+ o fix --bug when there is no /etc/urpmi/prefer.list file
- urpmf
o display "usage" when no <pattern-expression> is given (#32658)
diff --git a/urpmi b/urpmi
index b512958e..b910617b 100755
--- a/urpmi
+++ b/urpmi
@@ -241,9 +241,9 @@ if ($bug) {
? N("Directory [%s] already exists, please use another directory for bug report or delete it", $bug)
: N("Unable to create directory [%s] for bug report", $bug)));
#- copy all synthesis file used, along with configuration of urpmi
- system("cp", "-af", $urpm->{skiplist}, $urpm->{instlist},
- $urpm->{prefer_list}, $urpm->{prefer_vendor_list},
- $urpm->{config}, $bug)
+ my @list_files = grep { -e $_ } $urpm->{skiplist}, $urpm->{instlist},
+ $urpm->{prefer_list}, $urpm->{prefer_vendor_list};
+ system("cp", "-af", @list_files, $urpm->{config}, $bug)
and die N("Copying failed");
#- log everything for bug report.
$logfile = "$bug/urpmi.log";