I want to set up livecheck for fontconfig and I want to use the following livecheck URL: ${homepage}release/?C=M;O=D How can I do this? I've tried: livecheck.url ${homepage}release/?C=M;O=D --> doesn't work because it gets cut off at the semicolon; "port -dv livecheck" shows: DEBUG: Fetching http://fontconfig.org/release/?C=M livecheck.url ${homepage}release/?C=M\;O=D --> doesn't work because of "unsupported protocol" which is weird: DEBUG: Fetching {http://fontconfig.org/release/?C=M;O=D} Error: cannot check if fontconfig was updated (unsupported protocol) livecheck.url "${homepage}release/?C=M;O=D" --> doesn't work for the same reason as above: "unsupported protocol". livecheck.url ${homepage}release/?C=M%3BO=D --> doesn't work because the server does not deliver the same response when I encode the semicolon as %3B.
Sure, it's a bug with MacPorts. But you can usually fix it by replacing the semicolon with an &. Apache generally understand this character as a parameter separator. Le 9 juin 07 à 10:20, Ryan Schmidt a écrit :
I want to set up livecheck for fontconfig and I want to use the following livecheck URL:
${homepage}release/?C=M;O=D
How can I do this? I've tried:
livecheck.url ${homepage}release/?C=M;O=D
--> doesn't work because it gets cut off at the semicolon; "port - dv livecheck" shows:
DEBUG: Fetching http://fontconfig.org/release/?C=M
livecheck.url ${homepage}release/?C=M\;O=D
--> doesn't work because of "unsupported protocol" which is weird:
DEBUG: Fetching {http://fontconfig.org/release/?C=M;O=D} Error: cannot check if fontconfig was updated (unsupported protocol)
livecheck.url "${homepage}release/?C=M;O=D"
--> doesn't work for the same reason as above: "unsupported protocol".
livecheck.url ${homepage}release/?C=M%3BO=D
--> doesn't work because the server does not deliver the same response when I encode the semicolon as %3B.
_______________________________________________ macports-dev mailing list macports-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-dev
-- Anthony Ramine, a lazy french student. nox@macports.org
On Jun 9, 2007, at 08:46, N_Ox wrote:
Le 9 juin 07 à 10:20, Ryan Schmidt a écrit :
I want to set up livecheck for fontconfig and I want to use the following livecheck URL:
${homepage}release/?C=M;O=D
How can I do this? I've tried:
Sure, it's a bug with MacPorts. But you can usually fix it by replacing the semicolon with an &. Apache generally understand this character as a parameter separator.
Thanks for the tip; I didn't even think to try that. That works great. Still, we should probably fix the bug...
It's not a bug. It's the fact that the semicolon character is treated the same as a newline, in that it separates commands. This is a Tcl language feature. If you want a semicolon, either surround the entire value with double- quotes, or use a backslash to escape the semicolon. livecheck.url "${homepage}release/?C=M;O=D" livecheck.url ${homepage}release/?C=M\;O=D On Jun 9, 2007, at 12:03 PM, Ryan Schmidt wrote:
On Jun 9, 2007, at 08:46, N_Ox wrote:
Le 9 juin 07 à 10:20, Ryan Schmidt a écrit :
I want to set up livecheck for fontconfig and I want to use the following livecheck URL:
${homepage}release/?C=M;O=D
How can I do this? I've tried:
Sure, it's a bug with MacPorts. But you can usually fix it by replacing the semicolon with an &. Apache generally understand this character as a parameter separator.
Thanks for the tip; I didn't even think to try that. That works great.
Still, we should probably fix the bug...
-- Kevin Ballard http://kevin.sb.org eridius@macports.org http://www.tildesoft.com
Ok, it actually was a bug, but not with semicolons - the livecheck target wasn't de-escaping the URL, so the presence of any whitespace, semicolons, or curly braces would cause this issue. I've fixed the problem in r26041. On Jun 9, 2007, at 4:17 PM, Kevin Ballard wrote:
It's not a bug. It's the fact that the semicolon character is treated the same as a newline, in that it separates commands. This is a Tcl language feature.
If you want a semicolon, either surround the entire value with double-quotes, or use a backslash to escape the semicolon.
livecheck.url "${homepage}release/?C=M;O=D" livecheck.url ${homepage}release/?C=M\;O=D
-- Kevin Ballard http://kevin.sb.org eridius@macports.org http://www.tildesoft.com
On Jun 9, 2007, at 19:44, Kevin Ballard wrote:
On Jun 9, 2007, at 4:17 PM, Kevin Ballard wrote:
It's not a bug. It's the fact that the semicolon character is treated the same as a newline, in that it separates commands. This is a Tcl language feature.
If you want a semicolon, either surround the entire value with double-quotes, or use a backslash to escape the semicolon.
livecheck.url "${homepage}release/?C=M;O=D" livecheck.url ${homepage}release/?C=M\;O=D
Ok, it actually was a bug, but not with semicolons - the livecheck target wasn't de-escaping the URL, so the presence of any whitespace, semicolons, or curly braces would cause this issue.
I've fixed the problem in r26041.
Cool! Thanks.
participants (3)
-
Kevin Ballard
-
N_Ox
-
Ryan Schmidt