Code Review
/
trex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
4eda110
)
typo in master_daemon
author
Yaroslav Brustinov
<
[email protected]
>
Sat, 6 Aug 2016 17:45:53 +0000
(20:45 +0300)
committer
Yaroslav Brustinov
<
[email protected]
>
Sat, 6 Aug 2016 17:45:53 +0000
(20:45 +0300)
scripts/master_daemon.py
patch
|
blob
|
history
diff --git
a/scripts/master_daemon.py
b/scripts/master_daemon.py
index
e4042e1
..
dd4d805
100755
(executable)
--- a/
scripts/master_daemon.py
+++ b/
scripts/master_daemon.py
@@
-53,7
+53,7
@@
def update_trex(package_path = 'http://trex-tgn.cisco.com/trex/release/latest'):
if not len(unpacked_dirs) or len(unpacked_dirs) > 1:
raise Exception('Should be exactly one unpacked directory, got: %s' % unpacked_dirs)
cur_dir = args.trex_dir
- if os.path.islink(cur_dir) or os.path.isfile(cur_dir)
)
:
+ if os.path.islink(cur_dir) or os.path.isfile(cur_dir):
os.unlink(cur_dir)
if not os.path.exists(cur_dir):
os.makedirs(cur_dir)