[arch-dev-public] [PATCH 2/2] Accept any *.pkg.tar.* package file name

Dan McGee dpmcgee at gmail.com
Sun Feb 21 23:33:56 EST 2010


On Sun, Feb 21, 2010 at 10:27 PM, Pierre Schmitz <pierre at archlinux.de> wrote:
> Am Montag, 22. Februar 2010 05:24:50 schrieb Dan McGee:
>> On Sun, Feb 21, 2010 at 10:05 PM, Eric Bélanger <snowmaniscool at gmail.com>
> wrote:
>> > Another thing: it was mentionned on the IRC channel that namcap
>> > doesn't work with the new xz packages. It would be nice to have xz
>> > support in namcap before we start pushing these changes out.
>>
>> Yeah, this is IMHO a blocker to going gung-ho on this. It is not going
>> to be super-easy either as we use python's built-in archive support
>> that doesn't know about XZ as far as I know...
>
> Why not? Just call bsdtar to extract the tar somewhere. This way you don#t
> have to worry how the package is compressed.

Maybe you can get away with this in a shell script, but no one is
happy with this BS in a python program. Or at least I wouldn't be, but
feel free to send a patch to the namcap maintainer since it is so
easy. I'll be impressed when you fix every check that uses
tar.getmembers() too...

-Dan


More information about the arch-dev-public mailing list