From 5ebd12fb5f7c54516a8a5f2438294983ff61bd5f Mon Sep 17 00:00:00 2001
From: Joerg Jaspert <joerg@debian.org>
Date: Sun, 14 Aug 2011 12:10:57 +0200
Subject: [PATCH] copyoverrides

we do want to work with the basename, not the full path of the file here

Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
 config/debian/dinstall.functions | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions
index da158a47..ed6f48bc 100644
--- a/config/debian/dinstall.functions
+++ b/config/debian/dinstall.functions
@@ -244,8 +244,9 @@ function copyoverrides() {
     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
 }
 
-- 
2.39.5