Browse Source

Makes sure that --source always depends on -x .. before -xz was happening

because there was no check or x.
master
freesource 23 years ago
parent
commit
c2e7737da7
  1. 223
      SWIM/Safex.pm

223
SWIM/Safex.pm

@ -577,138 +577,141 @@ sub xyz {
################################ ################################
# INSTALL SOURCE DOWNLOAD-ONLY # # INSTALL SOURCE DOWNLOAD-ONLY #
################################ ################################
if (!$commands->{"y"}) { if ( $commands->{"x"} ) {
if (!$commands->{"download-only"}) { if (!$commands->{"y"}) {
if (!$commands->{"download-only"}) {
if ( !$commands->{"source"} ) { if ( !$commands->{"source"} ) {
system "$apt_get install $arg"; system "$apt_get install $arg";
}
elsif ( $commands->{"source"} ) {
if ( $commands->{"tar-only"} ||
$commands->{"diff-only"} ||
($commands->{"tar-only"} &&
$commands->{"diff-only"})
) {
if ( $commands->{"tar-only"} ) {
system "$apt_get source --tar-only $arg";
}
if ( $commands->{"diff-only"} ) {
system "$apt_get source --diff-only $arg";
}
}
else {
if ( $commands->{"b"} ) {
system "$apt_get source -b $arg";
}
else {
system "$apt_get source $arg";
}
} }
elsif ( $commands->{"source"} ) {
} if ( $commands->{"tar-only"} ||
} $commands->{"diff-only"} ||
else {
if ( !$commands->{"source"} ) {
system "$apt_get -d install $arg";
}
elsif ( $commands->{"source"} ) {
if ( $commands->{"tar-only"} ||
$commands->{"diff-only"} ||
($commands->{"tar-only"} && ($commands->{"tar-only"} &&
$commands->{"diff-only"}) $commands->{"diff-only"})
) { ) {
if ( $commands->{"tar-only"} ) { if ( $commands->{"tar-only"} ) {
system "$apt_get source -d --tar-only $arg"; system "$apt_get source --tar-only $arg";
} }
if ( $commands->{"diff-only"} ) { if ( $commands->{"diff-only"} ) {
system "$apt_get source -d --diff-only $arg"; system "$apt_get source --diff-only $arg";
} }
} }
else {
if ( $commands->{"b"} ) {
system "$apt_get source -bd $arg";
}
else { else {
system "$apt_get source -d $arg"; if ( $commands->{"b"} ) {
system "$apt_get source -b $arg";
}
else {
system "$apt_get source $arg";
}
} }
} }
} }
} else {
}
#####
# Y #
#####
else {
if (!$commands->{"download-only"}) {
if ( !$commands->{"source"} ) {
system "$apt_get install -y $arg";
}
elsif ( $commands->{"source"} ) {
if ( $commands->{"tar-only"} || if ( !$commands->{"source"} ) {
$commands->{"diff-only"} || system "$apt_get -d install $arg";
}
($commands->{"tar-only"} && elsif ( $commands->{"source"} ) {
$commands->{"diff-only"})
) { if ( $commands->{"tar-only"} ||
if ( $commands->{"tar-only"} ) { $commands->{"diff-only"} ||
system "$apt_get source -y --tar-only $arg";
} ($commands->{"tar-only"} &&
if ( $commands->{"diff-only"} ) { $commands->{"diff-only"})
system "$apt_get source -y --diff-only $arg"; ) {
} if ( $commands->{"tar-only"} ) {
} system "$apt_get source -d --tar-only $arg";
else { }
if ( $commands->{"b"} ) { if ( $commands->{"diff-only"} ) {
system "$apt_get source -by $arg"; system "$apt_get source -d --diff-only $arg";
} }
}
else { else {
system "$apt_get source -y $arg"; if ( $commands->{"b"} ) {
system "$apt_get source -bd $arg";
}
else {
system "$apt_get source -d $arg";
}
} }
} }
}
}
} }
#####
# Y #
#####
else { else {
if (!$commands->{"download-only"}) {
if ( !$commands->{"source"} ) {
system "$apt_get install -y -d $arg"; if ( !$commands->{"source"} ) {
system "$apt_get install -y $arg";
}
elsif ( $commands->{"source"} ) {
if ( $commands->{"tar-only"} ||
$commands->{"diff-only"} ||
($commands->{"tar-only"} &&
$commands->{"diff-only"})
) {
if ( $commands->{"tar-only"} ) {
system "$apt_get source -y --tar-only $arg";
}
if ( $commands->{"diff-only"} ) {
system "$apt_get source -y --diff-only $arg";
}
}
else {
if ( $commands->{"b"} ) {
system "$apt_get source -by $arg";
}
else {
system "$apt_get source -y $arg";
}
}
}
} }
elsif ( $commands->{"source"} ) { else {
if ( $commands->{"tar-only"} || if ( !$commands->{"source"} ) {
$commands->{"diff-only"} || system "$apt_get install -y -d $arg";
}
($commands->{"tar-only"} && elsif ( $commands->{"source"} ) {
$commands->{"diff-only"})
) { if ( $commands->{"tar-only"} ||
if ( $commands->{"tar-only"} ) { $commands->{"diff-only"} ||
system "$apt_get source -yd --tar-only $arg";
} ($commands->{"tar-only"} &&
if ( $commands->{"diff-only"} ) { $commands->{"diff-only"})
system "$apt_get source -yd --diff-only $arg"; ) {
} if ( $commands->{"tar-only"} ) {
} system "$apt_get source -yd --tar-only $arg";
else { }
if ( $commands->{"b"} ) { if ( $commands->{"diff-only"} ) {
system "$apt_get source -byd $arg"; system "$apt_get source -yd --diff-only $arg";
} }
}
else { else {
system "$apt_get source -y -d $arg"; if ( $commands->{"b"} ) {
system "$apt_get source -byd $arg";
}
else {
system "$apt_get source -y -d $arg";
}
} }
} }
} }
} }
} } # if -x
} }
####### #######
# FTP # # FTP #

Loading…
Cancel
Save