Debian Developers - (size savings +) Re: proposed release goal: DEBIAN/md5sums for all packages

This is Interesting: Free IT Magazines  
Home > Archive > Debian Developers > August 2007 > (size savings +) Re: proposed release goal: DEBIAN/md5sums for all packages





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author (size savings +) Re: proposed release goal: DEBIAN/md5sums for all packages
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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com