Signed-off-by: Joerg Jaspert <joerg@debian.org>
while read SHASUM SIZE NAME; do
if ! [ -f "${subdir}/${NAME}" ]; then
bname=$(basename ${NAME})
- if [[ "${bname}" =~ ^(Packages|Sources|Contents-[a-zA-Z0-9-]|Translation-[a-zA-Z_]+)$ ]]; then
+ if [[ "${bname}" =~ ^(Packages|Sources|Contents-[a-zA-Z0-9-]+|Translation-[a-zA-Z_]+)$ ]]; then
# We don't keep unpacked files, don't check for their existance.
# We might want to go and check their unpacked shasum, but right now
# I don't care. I believe it should be enough if all the packed shasums