Commit 922612f0 authored by Seblu's avatar Seblu
Browse files

Copy dict before iterating on it

parent 0a8930be
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment