| Oleg Verych 2007-08-28, 1:20 am |
| * Pierre Habouzit
* Date: Fri, 17 Aug 2007 15:22:05 +0200
>
[]
>
> OTOH that sucks because it would mean that we have to rebuild the
> whole archive that uses currently dh_md5sums, whereas we could just be
> backward compatible.
>
After playing with size reduction, i came up with stripping configs and
regenerating md5sums (if any). Yes, some packages aren't have them,
but after removing much of the stuff all must be regenerated anyway.
# dpkg-deb wrapper for geloiwa:
cd "$WDIR" # here WDIR=WDIR/data
GACONF=`du -s "$CFGDIR"`
md5sum `find . -type f | sort` > "$CFGDIR/md5sums" < /dev/null
cd "$CFGDIR"
cleanup_debconf
cleanup_scripts
GAdtCONF=$((`ff $GACONF` - `ff $(du -s)`))
cd "$WDIR/../"
printf "_ $PKG\t\t$GAdtSTAT+$GAdtCONF\t$GASTAT+$GA
CONF" >>stats
tar c -C data -f "$DATAFILE" .
# shend
How much size was reduced in each case is stored in shell-syntax
stats file for ease of totals generation.
Another design problem in this dpkg-deb<->dpkg dance is this re-taring of
data for dpkg. After another package database format, hopefully more
faster, this is issue to solve.
____
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
|