Cleanup repository task file handling.

Cleans up the APT file copy code in the repository task and
warns, if a sources.list file is missing in the target.