[pacman-dev] python-2.7 and pacman test-suite

Dan McGee dpmcgee at gmail.com
Mon Sep 27 14:43:15 EDT 2010


On Mon, Sep 27, 2010 at 1:22 PM, Rémy Oudompheng
<remyoudompheng at gmail.com> wrote:
> Dan McGee <dpmcgee at gmail.com> wrote:
>> On Mon, Sep 27, 2010 at 12:31 PM, Rémy Oudompheng
>> <remyoudompheng at gmail.com> wrote:
>>> If I'm diagnosing correctly, with python 2.6, the generated package
>>> files contain a ".PKGINFO" file, while python2.7 creates packages
>>> containing a file "./.PKGINFO" and libalpm complains saying the
>>> package is malformed.
>>
>> Looking quickly at the code here, I'm a bit surprised how we do it.
>> The behavior of os.walk() might have changed in what it is returning?
>
> It prepends "./", probably because we call os.walk("."). There's a
> trivial fix, but I just find it terribly ugly.

A trivial fix that doesn't work for anything pre-2.7 though, which is bad news.

-Dan


More information about the pacman-dev mailing list