aboutsummaryrefslogtreecommitdiffstats
path: root/grpmi/grpmi.pl
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-08-20 13:58:20 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-08-20 13:58:20 +0000
commit804ac30484ab969645dc4a086fa3bed42f862a3d (patch)
treeb0c05557547871702a68e46f830d75d89a0f5757 /grpmi/grpmi.pl
parent9d65b210df14c81b237871e26cfbca40989d4434 (diff)
downloadrpmdrake-804ac30484ab969645dc4a086fa3bed42f862a3d.tar
rpmdrake-804ac30484ab969645dc4a086fa3bed42f862a3d.tar.gz
rpmdrake-804ac30484ab969645dc4a086fa3bed42f862a3d.tar.bz2
rpmdrake-804ac30484ab969645dc4a086fa3bed42f862a3d.tar.xz
rpmdrake-804ac30484ab969645dc4a086fa3bed42f862a3d.zip
fix when there was errors
Diffstat (limited to 'grpmi/grpmi.pl')
-rwxr-xr-xgrpmi/grpmi.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/grpmi/grpmi.pl b/grpmi/grpmi.pl
index f7f8bd92..3fc14ef6 100755
--- a/grpmi/grpmi.pl
+++ b/grpmi/grpmi.pl
@@ -164,10 +164,12 @@ Do you want to force the install anyway?",
}
my $res = chomp_(grpmi_rpm::install_packages(\&install_packages_callback, @ARGV));
- $res and interactive_msg(_("Problems occurred during installation"), _("There was an error during packages installation:\n\n%s", $res));
+ if ($res) {
+ interactive_msg(_("Problems occurred during installation"), _("There was an error during packages installation:\n\n%s", $res));
+ goto cleanup;
+ }
}
-
# -=-=-=---=-=-=---=-=-=-- cleanup -=-=-=---=-=-=--
$exitstatus = 0;
interactive_msg(_("Everything installed successfully"), _("All requested packages were installed successfully."));