forked from ros/rosdistro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rosdep files check/clean scripts
Use pyyaml internal rules to decide whether to put quotes or not around strings. This prevents crashes for gentoo rules (among others)
- Loading branch information
Paul Mathieu
committed
Feb 19, 2013
1 parent
a83cc4d
commit d28e40c
Showing
2 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,17 +5,16 @@ | |
import sys | ||
|
||
indent_atom = ' ' | ||
#!/usr/bin/env python | ||
# | ||
|
||
# pretty - A miniature library that provides a Python print and stdout | ||
# wrapper that makes colored terminal text easier to use (eg. without | ||
# having to mess around with ANSI escape sequences). This code is public | ||
# domain - there is no license except that you must leave this header. | ||
# | ||
# Copyright (C) 2008 Brian Nez <thedude at bri1 dot com> | ||
# | ||
|
||
import sys | ||
# With modifications | ||
# (C) 2013 Paul M <[email protected]> | ||
|
||
codeCodes = { | ||
'black': '0;30', 'bright gray': '0;37', | ||
|
@@ -103,7 +102,7 @@ def check_brackets(buf): | |
def fun(i, l, o): | ||
m = re.match(r'^(?:' + indent_atom + r')*([^:]*):\s*(\w.*)$', l) | ||
if m is not None and m.groups()[0] not in excepts: | ||
print_err("lists of packages not in square brackets line %u" % (i+1)) | ||
print_err("list not in square brackets line %u" % (i+1)) | ||
return False | ||
return True | ||
return generic_parser(buf, fun) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters