macports / upt-macports

The Universal Packaging Tool (upt) backend for MacPorts
https://framagit.org/upt/upt
BSD 3-Clause "New" or "Revised" License
9 stars 12 forks source link

Hackage description port lint error #52

Open Korusuke opened 5 years ago

Korusuke commented 5 years ago

For few packages in hackage the description looks like:

description         This package provides a pure interface for compressing and \
                    decompressing streams of data represented as lazy \
                    ByteStrings. It uses the \
                    zlib C library \
                    so it has high performance. It supports the "zlib", \
                    "gzip" and "raw" compression formats.

and due to the quotes port lint gives a syntax error:

("extra characters after close-quote").

so should we remove quotes from all description by default for all frontends in upt-macports itself ?

jmroot commented 5 years ago

Or backslash-escape them, which is probably not much more work. It's specifically the comma adjacent to the close-quote that causes this BTW. Tcl uses double quotes to indicate word boundaries in cases where something would normally be parsed as multiple words due to containing spaces. So list foo bar gives exactly the same result as list "foo" "bar" (a list with 2 elements), whereas list "foo bar" gives a list with one element.