pytoport icon indicating copy to clipboard operation
pytoport copied to clipboard

Respecting package name letter case

Open mallniya opened this issue 8 years ago • 0 comments

Hello, I've been using pytoport lately and only confusing issue is an error of trying to find package by it's name in lowercase, whatever case initially was given to pytoport. For instance:

# pytoport tmp Naked                                                
[-] Generating files for Naked...
[-] Generating Makefile
[-] Makefile generated.
[-] Generating pkg-descr
[-] Downloading source files
/!\ py27-naked-0.1.31: Makefile warnings, please consider fixing /!\

Not validating first entry in CATEGORIES due to being outside of PORTSDIR. Please ensure this is proper when committing.

===>   py27-naked-0.1.31 depends on file: /usr/local/sbin/pkg - found
=> naked-0.1.31.tar.gz doesn't seem to exist in /usr/home/mallniya/tmp/_distdir/.
=> Attempting to fetch https://pypi.python.org/packages/source/n/naked/naked-0.1.31.tar.gz
fetch: https://pypi.python.org/packages/source/n/naked/naked-0.1.31.tar.gz: Not Found
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/naked-0.1.31.tar.gz
fetch: http://distcache.FreeBSD.org/ports-distfiles/naked-0.1.31.tar.gz: Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/home/mallniya/tmp/_distdir/ and try again.
*** Error code 1

Stop.
make[1]: stopped in /usr/home/mallniya/tmp/py-naked
*** Error code 1

Stop.
make: stopped in /usr/home/mallniya/tmp/py-naked
[!] Error generating checksum (errno 1)

As we can see: https://pypi.python.org/packages/source/n/naked/naked-0.1.31.tar.gz really doesn't exist, while: https://pypi.python.org/packages/source/N/Naked/Naked-0.1.31.tar.gz (version with upper N in Naked) is naturally can be found, and I want pytoport to do so and that's why command is pytoport tmp Naked and not pytoport tmp naked. I assume it's a bug.

mallniya avatar Mar 14 '16 16:03 mallniya