1 |
On Mon, May 31, 2010 at 08:32:34PM -0700, Zac Medico wrote: |
2 |
> Hi, |
3 |
> |
4 |
> In order to support alternative compression types for binhost |
5 |
> packages, I was thinking about adding support for a header field in |
6 |
> the Packages index file. For example, a header line like |
7 |
> "PACKAGE_EXTENSION: txz" could be used to indicate that clients |
8 |
> should download files with txz extensions instead of tbz2 |
9 |
> extensions. I'm planning to add support for both tgz [1] and txz |
10 |
> extensions. |
11 |
> |
12 |
> [1] http://bugs.gentoo.org/show_bug.cgi?id=142579 |
13 |
|
14 |
1) requires a version header bump |
15 |
2) a header alone isn't useful unless it's specifiable per cpv entry; |
16 |
thus it must be inheritable |
17 |
3) PACKAGE_EXTENSION is overly verbose and unclear it's specifying |
18 |
the compressor too; it's intention is for compression, state it as |
19 |
such (I mention this in light of URI's existance where |
20 |
PACKAGE_EXTENSION would only be a hint of compressor) |
21 |
|
22 |
Re: #1, there is a decent set of optimizations I'm kicking around in |
23 |
pkgcore for the next version- a discussion should probably be started |
24 |
there. |
25 |
|
26 |
Offhand, having a compression specific header (a simple enumeration |
27 |
of known compressors) and a DEFAULT_URI that is python string |
28 |
interpolation assembled (for example, |
29 |
DEFAULT_URI="%(host)s/%(category)s/%(pf)s.txz") seems wiser. Via |
30 |
doing what I'm suggesting, it would be possible to do binpkg |
31 |
repository 'views' w/out having to map each binpkg into the url space |
32 |
for it. |
33 |
|
34 |
~harring |