we do want to work with the basename, not the full path of the file here
Signed-off-by: Joerg Jaspert <joerg@debian.org>
log 'Copying override files into public view ...'
for ofile in ${overridedir}/override.{lenny,squeeze,wheezy,sid}.{,extra.}{main,contrib,non-free}*; do
- gzip -9v --rsyncable ${ofile} > ${indices}/${ofile}.gz
- chmod g+w ${indices}/${ofile}.gz
+ bname=${ofile##*/}
+ gzip -9cv --rsyncable ${ofile} > ${indices}/${bname}.gz
+ chmod g+w ${indices}/${bname}.gz
done
}