Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jlopez
wicopa
Commits
18e21607
Commit
18e21607
authored
Oct 12, 2020
by
jlopez
Browse files
Fix conda install -c option, See
#19
parent
e329829d
Changes
3
Show whitespace changes
Inline
Side-by-side
container.php
View file @
18e21607
...
...
@@ -8,7 +8,7 @@ require_once "./dao/DBquery.php";
$db
=
new
DBquery
();
$type
=
"all"
;
$author
=
NULL
;
$author
=
""
;
$labels
=
array
();
$tags
=
array
();
$descriptions
=
array
();
...
...
inc/js/wicopa.js
View file @
18e21607
...
...
@@ -400,10 +400,19 @@ function generate_container() {
nrow
+=
11
;
for
(
var
i
=
0
;
i
<
SELECTED_PACKAGES
[
"
Conda
"
].
length
;
i
++
)
{
PREVIEW
+=
"
\n
"
+
startType
+
"
conda install
"
+
SELECTED_PACKAGES
[
"
Conda
"
][
i
][
0
]
+
"
=
"
+
SELECTED_PACKAGES
[
"
Conda
"
][
i
][
1
];
value
=
SELECTED_PACKAGES
[
"
Conda
"
][
i
][
0
].
split
(
'
/
'
);
if
(
value
.
length
==
2
)
{
author
=
value
[
0
];
name
=
value
[
1
];
PREVIEW
+=
"
\n
"
+
startType
+
"
conda install -c
"
+
author
+
"
"
+
name
+
"
=
"
+
SELECTED_PACKAGES
[
"
Conda
"
][
i
][
1
];
nrow
+=
1
;
}
}
}
...
...
package.php
View file @
18e21607
...
...
@@ -645,8 +645,12 @@ function findCondaPackage($os_name, $version_num, $version_name, $keyword, $limi
}
$vv
=
$tr
[
$i
]
->
getElementsByTagName
(
'a'
)[
1
];
$name
=
$vv
->
childNodes
[
1
]
->
nodeValue
;
$author
=
cleanValue
(
$tr
[
$i
]
->
getElementsByTagName
(
'a'
)[
0
]
->
nodeValue
);
$name
=
$author
.
"/"
.
$vv
->
childNodes
[
1
]
->
nodeValue
;
$version
=
$vv
->
childNodes
[
3
]
->
nodeValue
;
$description
=
cleanValue
(
$vv
->
parentNode
->
parentNode
->
childNodes
[
2
]
->
nodeValue
);
$other
=
$tr
[
$i
]
->
childNodes
[
3
]
->
nodeValue
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment