aboutsummaryrefslogtreecommitdiffstats
path: root/gurpmi.addmedia
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-05 15:23:10 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-05 15:23:10 +0000
commitf32bb1b6ff0b4f72ae325d027d44cd0ab3216d22 (patch)
tree561588a9dc27c2663d547d3fbf28070a20192901 /gurpmi.addmedia
parent4388f345f41d5f74c70b23e99e3751e76666cb62 (diff)
downloadrpmdrake-f32bb1b6ff0b4f72ae325d027d44cd0ab3216d22.tar
rpmdrake-f32bb1b6ff0b4f72ae325d027d44cd0ab3216d22.tar.gz
rpmdrake-f32bb1b6ff0b4f72ae325d027d44cd0ab3216d22.tar.bz2
rpmdrake-f32bb1b6ff0b4f72ae325d027d44cd0ab3216d22.tar.xz
rpmdrake-f32bb1b6ff0b4f72ae325d027d44cd0ab3216d22.zip
use myexit from rpmdrake.pm rather than POSIX::_exit
Diffstat (limited to 'gurpmi.addmedia')
-rwxr-xr-xgurpmi.addmedia7
1 files changed, 3 insertions, 4 deletions
diff --git a/gurpmi.addmedia b/gurpmi.addmedia
index 5751008b..53453da5 100755
--- a/gurpmi.addmedia
+++ b/gurpmi.addmedia
@@ -45,7 +45,6 @@ and [options] are from
require_root_capability();
use rpmdrake;
-use POSIX;
eval { require ugtk2; ugtk2->import(qw(:all)) };
if ($@) {
@@ -69,7 +68,7 @@ my ($name, $url, $with, $with_hdlist) = @ARGV;
if ($url !~ m,^(file://|ftp://|http://|removable://), || $with && !$with_hdlist) {
interactive_msg('gurpmi.addmedia',
N("Unable to add medium, wrong or missing arguments"));
- POSIX::_exit(-1);
+ myexit(-1);
}
$fromfile and interactive_msg('gurpmi.addmedia',
@@ -86,7 +85,7 @@ $urpm->read_config;
if (add_medium_and_check($urpm, { probe_with => !$with }, $name, $url, $with_hdlist, update => $update)) {
interactive_msg('gurpmi.addmedia',
N("Successfully added medium `%s'.", $name));
- POSIX::_exit(0);
+ myexit(0);
} else {
- POSIX::_exit(-1);
+ myexit(-1);
}