Compare commits
4 Commits
dca55ca460
...
3487b410fa
Author | SHA1 | Date | |
---|---|---|---|
3487b410fa | |||
5a30cb3532 | |||
905d2e6c78 | |||
9c85235bea |
2
build.sh
2
build.sh
@ -43,6 +43,8 @@ elif [ X"$kernel" = X"redflag" ]; then
|
|||||||
dist_version="Asianux"
|
dist_version="Asianux"
|
||||||
elif [ X"$kernel" = X"asianux" ]; then
|
elif [ X"$kernel" = X"asianux" ]; then
|
||||||
dist_version="Asianux"
|
dist_version="Asianux"
|
||||||
|
elif [ X"$kernel" = X"loongnix-server" ]; then
|
||||||
|
dist_version="loongnix-server"
|
||||||
else
|
else
|
||||||
echo "We only support EulerOS, openEuler(aarch64), CentOS and Asianux platform."
|
echo "We only support EulerOS, openEuler(aarch64), CentOS and Asianux platform."
|
||||||
echo "Kernel is $kernel"
|
echo "Kernel is $kernel"
|
||||||
|
@ -97,11 +97,13 @@ typecast_BOOLEAN_cast(const char *s, Py_ssize_t len, PyObject *curs)
|
|||||||
if (s == NULL) { Py_RETURN_NONE; }
|
if (s == NULL) { Py_RETURN_NONE; }
|
||||||
|
|
||||||
switch (s[0]) {
|
switch (s[0]) {
|
||||||
|
case '1':
|
||||||
case 't':
|
case 't':
|
||||||
case 'T':
|
case 'T':
|
||||||
res = Py_True;
|
res = Py_True;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case '0':
|
||||||
case 'f':
|
case 'f':
|
||||||
case 'F':
|
case 'F':
|
||||||
res = Py_False;
|
res = Py_False;
|
||||||
|
Reference in New Issue
Block a user