Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
pacman-mirrors
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Applications
pacman-mirrors
Commits
688b00a6
Commit
688b00a6
authored
Aug 13, 2018
by
Frede Hundewadt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added no optimize to function
parent
1edf3433
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
pacman_mirrors/functions/countryFn.py
pacman_mirrors/functions/countryFn.py
+10
-3
No files found.
pacman_mirrors/functions/countryFn.py
View file @
688b00a6
...
...
@@ -33,8 +33,15 @@ def build_country_list(country_selection, country_pool, geoip=False):
:rtype: list
"""
"""
Don't change this code
This works so please don't touch
# Dear Fellow Manjaro Maintainer:
# When I wrote this code, only I knew how it worked.
# Now, no one knows!
#
# Therefore if you are trying to optimize
# this routine and it fails (most surely),
# please increase this counter as a warning for the next person.
#
# total_hours_wasted_here = 1
"""
result
=
[]
if
country_selection
:
...
...
@@ -47,7 +54,7 @@ def build_country_list(country_selection, country_pool, geoip=False):
if
not
result
:
if
geoip
:
country
=
get_geoip_country
(
country_pool
)
if
country
:
# valid geoip
if
country
:
result
=
country
else
:
result
=
country_pool
...
...
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