Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
archlinux
archversion
Commits
922612f0
Commit
922612f0
authored
Oct 06, 2015
by
Seblu
Browse files
Copy dict before iterating on it
parent
0a8930be
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/archversion/version.py
View file @
922612f0
...
...
@@ -78,7 +78,7 @@ class VersionController(object):
controller future actions
'''
packages
=
set
(
packages
)
for
name
,
data
in
self
.
_packages
.
items
():
for
name
,
data
in
OrderedDict
(
self
.
_packages
)
.
items
():
names
=
set
((
name
,))
|
set
(
self
.
alias
(
data
))
if
len
(
packages
&
names
)
==
0
:
self
.
_packages
.
pop
(
name
,
None
)
...
...
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