[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [SCM] Debian package checker branch, master, updated. 2.2.0-29-gc2ef3fd



[...]
>  mirror="${DEB_MIRROR:=http://i386-geomirror.debian.net/debian}";
> @@ -60,10 +64,17 @@ wget() {
>  }
>  mkdir -p "$lintian_data/files"
>  
> +cat > "$lintian_data/files/fonts" <<EOF

The idea of storing the results in $workdir first is to be more atomic, so that
in the eventuality that wget fails or the script is terminated or killed, the
original data file will remain untouched. Not that it is extremely relevant
with git, but... :)

> +# The list of known font filenames already packaged for Debian and the
> +# package that contains the font.  Only packages starting with ttf- or
> +# otf- are searched for fonts.
> +#
> +# Last updated: $(date -u +'%Y-%m-%d')
> +
> +EOF
> +
>  cd "$workdir"
>  wget dists/sid/Contents-i386.gz
>  zcat Contents-i386.gz \
> -    | perl -n -w -E 'print lc $_ if
> (s#^.+/([\w-]+\.(?:[to]tf|pfb|pcf))\s+\w+/([to]tf.+)$#$1=$2#i);' \
> -    | sort > fonts
> -
> -mv fonts "$lintian_data/files/"
> +    | perl -n -w -E 'print lc $_ if
> (s,^.+/([\w-]+\.(?:[to]tf|pfb|pcf))\s+\w+/([to]tf-[^,]+(,.+)?)$,$1 $2,i);' \
> +    | sort >> "$lintian_data/files/fonts"


Cheers,
-- 
Raphael Geissert - Debian Maintainer
www.debian.org - get.debian.net



Reply to: