Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Oskar Roesler
ros-aur-helpers
Commits
752623fe
Verified
Commit
752623fe
authored
Dec 06, 2020
by
Oskar Roesler
Browse files
Only pre-check for path existance if specified in special name exception handling in parser.py
parent
45603667
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
aurci/parser.py
aurci/parser.py
+3
-3
No files found.
aurci/parser.py
View file @
752623fe
...
...
@@ -30,10 +30,10 @@ def main(argv):
args
=
parser
.
parse_args
(
argv
)
def
retry_with_rosdistro_name
():
def
retry_with_rosdistro_name
(
check_path
=
False
):
routines
=
Routines
()
name
=
"ros-{0}-{1}"
.
format
(
routines
.
get_ros_distro
(),
args
.
package
)
if
os
.
path
.
exists
(
os
.
path
.
join
(
routines
.
cache_path
,
'packages'
,
name
)):
if
not
check_path
or
os
.
path
.
exists
(
os
.
path
.
join
(
routines
.
cache_path
,
'packages'
,
name
)):
try
:
commands
(
args
.
command
,
name
,
args
.
verbose
,
args
.
quiet
)
except
KeyError
:
...
...
@@ -49,7 +49,7 @@ def main(argv):
except
KeyError
:
retry_with_rosdistro_name
()
except
FileNotFoundError
:
retry_with_rosdistro_name
()
retry_with_rosdistro_name
(
check_path
=
True
)
if
__name__
==
'__main__'
:
main
(
sys
.
argv
)
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