Skip to content

Commit

Permalink
Fixes #149 nav with --via broken.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Smith committed Jan 27, 2015
1 parent ef8353f commit 2dc85bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/nav_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ def run(results, cmdenv, tdb):
hops = [ [ srcSystem, None ] ]
if cmdenv.viaPlaces:
for hop in cmdenv.viaPlaces:
hops[0][1] = hop
hops.insert(0, [hop, None])
hops[0][1] = dstSystem
hops[-1][1] = hop
hops.append([hop, None])
hops[-1][1] = dstSystem

avoiding = [
avoid for avoid in cmdenv.avoidPlaces
Expand Down

0 comments on commit 2dc85bc

Please sign in to comment.