Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.devtools
Commits
7d09e1d7
Commit
7d09e1d7
authored
4 years ago
by
Amir MOHAMMADI
Browse files
Options
Downloads
Patches
Plain Diff
Give public packages more priority over private packages
parent
2b1daf98
No related branches found
No related tags found
1 merge request
!168
Give public packages more priority over private packages
Pipeline
#42945
passed
4 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/devtools/bootstrap.py
+9
-8
9 additions, 8 deletions
bob/devtools/bootstrap.py
with
9 additions
and
8 deletions
bob/devtools/bootstrap.py
+
9
−
8
View file @
7d09e1d7
...
...
@@ -289,8 +289,8 @@ def get_channels(public, stable, server, intranet, group):
* not public and stable: returns both public and private stable channels
* not public and not stable: returns all channels
Beta channels have priority over stable channels, if returned. P
rivate
channels have priority over p
ublic
channles, if turned.
Beta channels have priority over stable channels, if returned. P
ublic
channels have priority over p
rivate
channles, if turned.
Args:
...
...
@@ -319,18 +319,19 @@ def get_channels(public, stable, server, intranet, group):
channels
=
[]
# do not use '/public' urls for public channels
prefix
=
"
/software/
"
+
group
if
not
stable
:
channels
+=
[
server
+
prefix
+
"
/conda/label/beta
"
]
# allowed betas
channels
+=
[
server
+
prefix
+
"
/conda
"
]
if
not
public
:
prefix
=
"
/private
"
if
not
stable
:
# allowed private channels
channels
+=
[
server
+
prefix
+
"
/conda/label/beta
"
]
# allowed betas
channels
+=
[
server
+
prefix
+
"
/conda
"
]
# do not use '/public' versions here
prefix
=
"
/software/
"
+
group
if
not
stable
:
channels
+=
[
server
+
prefix
+
"
/conda/label/beta
"
]
# allowed betas
channels
+=
[
server
+
prefix
+
"
/conda
"
]
return
channels
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment