Remove unnecessary mediaClose (FTP operations are done with either ftp(1)

or fetch(1), neither of which are stateful, compared to how sysinstall(8)
did FTP operations, maintaining an open session until mediaClose).
This commit is contained in:
Devin Teske 2013-09-07 03:27:13 +00:00
parent 7e9ed73522
commit 05f7eb31a2

View file

@ -19,7 +19,6 @@ if [ ! -e "$TMPDIR/packages/INDEX" ]; then
mediaOpen
f_show_info "Downloading packages/INDEX from\n %s" "$_ftpPath"
f_device_get media packages/INDEX > $TMPDIR/packages/INDEX
mediaClose
fi
_directoryPath=$TMPDIR
mediaSetDirectory