File: rosinstall

package info (click to toggle)
ros-rosinstall 0.7.8-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 728 kB
  • sloc: python: 3,399; makefile: 132; xml: 12
file content (22 lines) | stat: -rwxr-xr-x 802 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python

import sys
try:
    from rosinstall.rosinstall_cli import rosinstall_main
    from rosinstall.helpers import ROSInstallException
    from wstool.common import MultiProjectException
except ImportError as exc:
    if ('rosinstall' in str(exc) or 'vcstools' in str(exc)):
        sys.exit("ERROR: Cannot find required rosinstall library version, \
check your installation (also of vcstools) is up-to-date. One frequent cause \
is that rosinstall 0.5 is still installed in /usr/local/lib.\n%s" % exc)
    raise


if __name__ == "__main__":
    try:
        sys.exit(not rosinstall_main(sys.argv))
    except ROSInstallException as rie:
        sys.exit("ERROR in rosinstall: %s" % str(rie))
    except MultiProjectException as mpe:
        sys.exit("ERROR in config: %s" % str(mpe))