[pacman-dev] bzip2 package compression
Dan McGee
dpmcgee at gmail.com
Sat Dec 6 12:57:12 EST 2008
On Sat, Dec 6, 2008 at 9:04 AM, Mark Constable <markc at renta.net> wrote:
> I changed these in /etc/makepkg.conf to bz2 variants ages
> ago and assumed that the resulting packages would be bzip2
> compressed. When I double checked the packages they were
> still only gzip compressed even though the extension was
> tar.bz2. Everything works so I didn't pick it up but I'd be
> interested in the bandwidth saving from bzip2 compression.
>
> PKGEXT='.pkg.tar.bz2'
> SRCEXT='.src.tar.bz2'
> DB_COMPRESSION='bz2'
>
> Is there a reason that a -cjf is not used in makepkg ?
local TAR_OPT
case "$PKGEXT" in
*tar.gz) TAR_OPT="z" ;;
*tar.bz2) TAR_OPT="j" ;;
*) warning "$(gettext "'%s' is not a valid archive extension.")" \
"$PKGEXT" ;;
esac
The current code is a bit smarter and compresses correctly depending
on the extension.
-Dan
More information about the pacman-dev
mailing list