121
117
createemptyarchive 'Packages'
122
118
testaptgetupdate "Get:1 http://localhost InRelease []
123
119
Get:2 http://localhost Packages []
125
120
Reading package lists..." "empty archive Packages.$COMPRESS over http"
127
122
createemptyfile 'Packages'
128
123
#FIXME: we should response with a good error message instead
129
124
testaptgetupdate "Get:1 http://localhost InRelease []
130
125
Get:2 http://localhost Packages
132
126
Err http://localhost Packages
133
127
Empty files can't be valid archives
134
128
W: Failed to fetch ${COMPRESSOR}:$(readlink -f rootdir/var/lib/apt/lists/partial/localhost:8080_Packages) Empty files can't be valid archives