-testaptgetupdate "Ign http://localhost Release.gpg
-Get:1 http://localhost/ Translation-en []
-Get:2 http://localhost Release []
-Ign http://localhost Packages/DiffIndex
-Get:3 http://localhost Packages []
-Reading package lists..." "empty archive en.bz2 over http"
+testoverfile() {
+ setupcompressor "$1"
+
+ createemptyfile 'en'
+ testaptgetupdate "Get:1 file: InRelease []
+Ign file: Translation-en
+Reading package lists..." "empty file en.$COMPRESS over file"
+
+ createemptyarchive 'en'
+ testaptgetupdate "Get:1 file: InRelease []
+Reading package lists..." "empty archive en.$COMPRESS over file"
+
+ createemptyarchive 'Packages'
+ # FIXME: Why omits the file transport the Packages Get line?
+ #Get:3 file: Packages []
+ testaptgetupdate "Get:1 file: InRelease []
+Ign file: Translation-en
+Reading package lists..." "empty archive Packages.$COMPRESS over file"
+
+ createemptyfile 'Packages'
+ testaptgetupdate "Get:1 file: InRelease []
+Ign file: Translation-en
+Err file: Packages
+ Empty files can't be valid archives
+W: Failed to fetch ${COMPRESSOR}:$(readlink -f aptarchive/Packages.$COMPRESS) Empty files can't be valid archives
+
+E: Some index files failed to download, they have been ignored, or old ones used instead." "empty file Packages.$COMPRESS over file"
+}