Verified Commit 923d5ef6 authored by Oskar Roesler's avatar Oskar Roesler
Browse files

Handle Package not found errors more handy

parent 8bf06a0e
import sys
import argparse
import os
from aurci.bootstrap import Clone, Pull
from import Packages
from aurci.update import Update
......@@ -32,8 +33,12 @@ def main(argv):
commands(args.command, args.package, args.verbose, args.quiet)
except BaseException as e:
commands(args.command, "{0}{1}".format(Routines.get_ros_distro(), args.package),
args.verbose, args.quiet)
name = "{0}{1}".format(Routines.get_ros_distro(), args.package)
if os.path.exists(os.path.join("packages/", name)):
commands(args.command, name, args.verbose, args.quiet)
except BaseException as e:
print(f"Error: {args.package} could not be found while running {args.command}")
if __name__=='__main__':
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