From 094a3cbcfb742ad5494585a24269809a1f1f7aa8 Mon Sep 17 00:00:00 2001 From: freesource Date: Sat, 20 Oct 2001 03:29:36 +0000 Subject: [PATCH] Fixes a logic bug for install -s. --- SWIM/Safex.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SWIM/Safex.pm b/SWIM/Safex.pm index 8a12c19..400002e 100644 --- a/SWIM/Safex.pm +++ b/SWIM/Safex.pm @@ -647,7 +647,7 @@ sub xyz { else { if (!$commands->{"download-only"}) { - if ( $commands->{"install"} ) { + if ( !$commands->{"source"} ) { system "$apt_get install -y $arg"; } elsif ( $commands->{"source"} ) { @@ -678,7 +678,7 @@ sub xyz { } else { - if ( $commands->{"install"} ) { + if ( !$commands->{"source"} ) { system "$apt_get install -y -d $arg"; } elsif ( $commands->{"source"} ) { @@ -708,7 +708,7 @@ sub xyz { } } - } + }x } ####### # FTP #