Architecture names can have more than one character
authorAnsgar Burchardt <ansgar@debian.org>
Sat, 6 Feb 2016 13:38:58 +0000 (14:38 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Sat, 6 Feb 2016 13:38:58 +0000 (14:38 +0100)
config/debian/dinstall.functions

index 761c724..9ca4433 100755 (executable)
@@ -535,7 +535,7 @@ function mirrorpush() {
             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_]+|Components-[a-zA-Z0-9-]\.yml|icons-(128x128|64x64)\.tar)$ ]]; then
+                    if [[ "${bname}" =~ ^(Packages|Sources|Contents-[a-zA-Z0-9-]+|Translation-[a-zA-Z_]+|Components-[a-zA-Z0-9-]+\.yml|icons-(128x128|64x64)\.tar)$ ]]; 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