578
578
eval "${_DOWNLOADER}" # execute downloadhelper command
579
579
if [ "$(find "$DLDIR" -printf . | wc -c)" -gt 1 ]; then
581
# Delete incomplete/corrupted downloaded files, if any: Not recursive, as we don't expect any dirs to exist within $DLDIR.
583
# When Aria2c downloads a file and detects it is corrupted, its filename won't be renamed back to its actual name,
584
589
# Move all packages to the apt install directory by force to ensure
585
590
# already existing debs which may be incomplete are replaced
586
591
find . -type f \( -name '*.deb' -o -name '*.ddeb' \) -execdir mv -ft "$APTCACHE" {} \+