[Buildroot] [PATCH v2] scanpypi: use archive file name to specify the extraction folder
peter at korsgaard.com
Wed Nov 14 22:36:25 UTC 2018
>>>>> "yegorslists" == yegorslists <yegorslists at googlemail.com> writes:
> From: Yegor Yefremov <yegorslists at googlemail.com>
> Some packages have archive name that is different from package name.
> For example websocket-client's archive name is websocket_client-*.tar.gz.
> scanpypi expects the temporary extract folder to be:
> In the case of websocket-client package the real extraction folder
> will be different from the expected one because of the '_' in the
> archive file name.
> Use archive file name instead of package name to specify the extraction
> folder. As the version is already part of this file, we don't need to
> specify it.
> Bonus: remove obsolete "return None, None" as the function doesn't return
> anything. OSError class doesn't provide "message" member, so replace it
> with "strerror".
> Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
> Changes v1->v2:
> - fix typos
> - add fixes tag
Committed to 2018.02.x and 2018.08.x, thanks.
Bye, Peter Korsgaard
More information about the buildroot