-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple pkg repositories #1
Comments
What problems does this create? I think you refer to this line: https://github.com/dlangille/SamDrucker/blob/master/clients/samdrucker.sh#L53 Also, I think repo is getting the wrong values in that field. Examples from my database.
|
I think it mostly works by accident - This looks to be an implementation detail, it's not documented behaviour from what I can see. |
In the past, I used multiple repos, but stopped. That has contributed to this. |
@jpmens see above where jo is mentioned. |
I noticed; thanks :)
|
You are everywhere. |
Actually I thought you were referring to the README. Now I see @Freaky might have uncovered a small issue and/or something which isn’t documented, so if you think it’s a bug I’d appreciate a bug report and more so a fix. :) |
I think I see why. That value is actually:
It makes me think of url encoding issues. |
@jpmens This is my first time using -% jo foo:bar
{}
-% jo foobar
Argument `foobar' is neither k=v nor k@v
{} |
@dlangille Maybe you want |
@Freaky I was just trying that, but:
|
If I manually urlencode |
I thought using |
Don't mix -% curl -d "foo={bar+[foo]}" https://voi.aagh.net/post.php -X POST
array(1) {
["foo"]=>
string(11) "{bar [foo]}"
}
-% curl -d --data-urlencode "foo={bar+[foo]}" https://voi.aagh.net/post.php -X POST
curl: (3) nested brace in URL position 10:
foo={bar+[foo]}
^
-% curl --data-urlencode "foo={bar+[foo]}" https://voi.aagh.net/post.php -X POST
array(1) {
["foo"]=>
string(11) "{bar+[foo]}"
} |
This works:
|
I think you've found it. |
I'm only half paying attention, but IMO URL encoding the data is not really needed, and passing all that data on the command ine might even blow some limit (MAX ARGS?) some time / some day. If this were mine, I would run t=$(mkstemp /tmp/xxxxxx)
jo .... > $t
curl --data @${t} ... The |
@Freaky there are likely a number of undocumented / unintentional cases in |
This works in release 0.0.2 |
This works:
More importantly, so does this:
|
I'm sure you have a reason for FWIW, I typically use |
Ah, I see it here: json_decode($_REQUEST['packages']); yes, fine. Just FYI, if you prefer to avoid the encoding you can pick up the raw POST (sent with $data = file_get_contents('php://input');
json_decode(...); |
I encoded because we're sending data in a URL. I thought urlencoding was the thing to do when sending data in a URL. At present, we are just sending one parameter over, |
Sorry, this got dropped. Not sure what is next. |
pkg
supports an arbitrary number of active package repositories, but SameDrucker seems to assume There Can Be Only One🌩.The text was updated successfully, but these errors were encountered: