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
81742252
Commit
81742252
authored
Jan 16, 2017
by
Hugo Posnic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes
parent
d3539018
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
pacman_mirrors/pacman_mirrors_gui.py
pacman_mirrors/pacman_mirrors_gui.py
+4
-3
No files found.
pacman_mirrors/pacman_mirrors_gui.py
View file @
81742252
...
...
@@ -39,7 +39,8 @@ class PacmanMirrors(Gtk.Window):
for
server
in
server_list
:
mirrors_list
.
append
((
False
,
server
[
"country"
],
"{}h"
.
format
(
server
[
"last_sync"
]),
"{}h {}m"
.
format
(
server
[
"last_sync"
][:
2
],
server
[
"last_sync"
][
-
2
:]),
server
[
"url"
][:
-
20
]))
self
.
mirrors_liststore
=
Gtk
.
ListStore
(
bool
,
str
,
str
,
str
)
for
mirror_ref
in
mirrors_list
:
...
...
@@ -84,11 +85,11 @@ class PacmanMirrors(Gtk.Window):
self
.
mirrors_liststore
[
path
][
0
]
=
not
self
.
mirrors_liststore
[
path
][
0
]
if
self
.
mirrors_liststore
[
path
][
0
]:
for
server
in
self
.
server_list
:
if
server
[
"url"
][:
-
20
]
==
self
.
mirrors_liststore
[
path
][
2
]:
if
server
[
"url"
][:
-
20
]
==
self
.
mirrors_liststore
[
path
][
3
]:
self
.
custom_list
.
append
(
server
)
else
:
for
server
in
self
.
custom_list
:
if
server
[
"url"
][:
-
20
]
==
self
.
mirrors_liststore
[
path
][
2
]:
if
server
[
"url"
][:
-
20
]
==
self
.
mirrors_liststore
[
path
][
3
]:
self
.
custom_list
.
remove
(
server
)
self
.
button_done
.
set_sensitive
(
bool
(
self
.
custom_list
))
...
...
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