On Fri, Sep 5, 2008 at 1:25 PM, Teran McKinney <sega01@gmail.com> wrote:
Wouldn't this break package extensions that are not *.tar.{gz,bz2}? I personally do not like this, as my Arch fork uses .ipkg (I find pkg.tar.$COMPRESSION very ugly, IMHO). Perhaps tar could simply tar the archive and a setting in makepkg.conf would allow for any method of compression? Example:
makepkg.conf: COMPRESS='gzip -9'
Makepkg: bsdtar -cf "$pkg_file" $comp_files * $COMPRESS "$pkg_file"
Of course, you would need to deal with renaming it from ${EXTENSION}.gz back to $EXTENSION. Some error checking would be nice too.
And how will you know if a suffix was added, and which one? This looks ugly.
Regarding repo-add, it could simply `tar -xf` and it would be extracted if `tar` understands that type of compression. It could also check with `file`, perhaps.
The problem is compressing, not decompressing. file can not work for repo-add because when you create a repo the first time, it does not exist yet.
PS: Why is bsdtar used instead of GNU tar?