Index: client/1.0/neutral/pkgd.eagle ================================================================== --- client/1.0/neutral/pkgd.eagle +++ client/1.0/neutral/pkgd.eagle @@ -1658,10 +1658,13 @@ } set persistent [string is true -strict \ [getDictionaryValue $options -persistent]] + set overwrite [string is true -strict \ + [getDictionaryValue $options -overwrite]] + set usePgp [string is true -strict \ [getDictionaryValue $options -usePgp]] set useAutoPath [string is true -strict \ [getDictionaryValue $options -useAutoPath]] @@ -1699,10 +1702,21 @@ if {[file exists $downloadFileName]} then { error [appendArgs \ "temporary file name \"" $downloadFileName \ "\" already exists"] } + + if {$persistent || $viaInstall} then { + if {!$overwrite} then { + set persistentFileName [file normalize [file join \ + $directory(persistent) $fileNameOnly]] + + if {[file exists $persistentFileName]} then { + continue + } + } + } file mkdir [file dirname $downloadFileName] downloadOneFile $language $version $platform \ $fileName $downloadFileName $usePgp