Skip to content

Commit

Permalink
no need for set call
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Sep 17, 2020
1 parent 36c56db commit 1c53be8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions manic/sourcetree.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ def checkout(self, verbosity, load_all, load_comp=None):
tmp_comps = self._required_compnames

load_comps = self.order_comps_by_local_path(tmp_comps)

# checkout the primary externals
for comp in load_comps:
if verbosity < VERBOSITY_VERBOSE:
Expand All @@ -363,10 +362,8 @@ def order_comps_by_local_path(self, comps_in):
local_paths = []
for comp in comps_in:
local_paths.append(self._all_components[comp].get_local_path())
local_paths = list(set(local_paths))
for path in sorted(local_paths, key=len):
for comp in comps_in:
if self._all_components[comp].get_local_path() == path:
comps_out.append(comp)
comps_out = list(set(comps_out))
return comps_out

0 comments on commit 1c53be8

Please sign in to comment.