diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-08-21 12:30:00 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-08-21 12:30:00 +0000 |
commit | 0a40c54102a7766e7d7ce925ea8409efa74f1036 (patch) | |
tree | 1fc2cdeb1c9c7e09ba2141a56dc4194e9c58c883 | |
parent | a710a3fc34e0a972c01d45c938aec2f140e1b312 (diff) | |
download | urpmi-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-- | NEWS | 2 | ||||
-rwxr-xr-x | urpmi | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -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) @@ -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"; |