diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-05-04 14:47:19 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-05-04 14:47:19 +0000 |
commit | ab0cfb7370c3c3cef0cdb8d8290937274679bcad (patch) | |
tree | ad5852b0b4ec132bdb2d404147a1fc395464126c /urpmi | |
parent | 42695e87b3daf98dc387a80e0e61eb839046e63d (diff) | |
download | urpmi-ab0cfb7370c3c3cef0cdb8d8290937274679bcad.tar urpmi-ab0cfb7370c3c3cef0cdb8d8290937274679bcad.tar.gz urpmi-ab0cfb7370c3c3cef0cdb8d8290937274679bcad.tar.bz2 urpmi-ab0cfb7370c3c3cef0cdb8d8290937274679bcad.tar.xz urpmi-ab0cfb7370c3c3cef0cdb8d8290937274679bcad.zip |
- in urpmi.addmedia, if a "with" argument was provided on the command-line,
don't probe for synthesis or hdlist files in other directories
- check return value from system("cp"...) and log errors
Diffstat (limited to 'urpmi')
-rwxr-xr-x | urpmi | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -231,7 +231,8 @@ if ($bug) { ? N("Directory [%s] already exists, please use another directory for bug report or delete it") : 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}, $bug); + system("cp", "-af", $urpm->{skiplist}, $urpm->{instlist}, $bug) + and die N("Copying failed"); #- allow log file. $log = "$bug/urpmi.log"; } @@ -348,7 +349,10 @@ if ($bug) { $urpm->write_config; #- handle local packages, copy them directly in bug environment. foreach (keys %requested) { - $urpm->{source}{$_} and system "cp", "-af", $urpm->{source}{$_}, $bug; + if ($urpm->{source}{$_}) { + system "cp", "-af", $urpm->{source}{$_}, $bug + and die N("Copying failed"); + } } } |