search for: empty_lin

Displaying 7 results from an estimated 7 matches for "empty_lin".

Did you mean: empty_line
2014 Jan 21
1
[PATCH] builder: allow more empty lines in index files
...(-) diff --git a/builder/index-parse.y b/builder/index-parse.y index f5e551b..a8d2f62 100644 --- a/builder/index-parse.y +++ b/builder/index-parse.y @@ -80,10 +80,10 @@ index: { parsed_index = $2; } sections: - section + section emptylines { $$ = $1; } - | section EMPTY_LINE sections - { $$ = $1; $$->next = $3; } + | section EMPTY_LINE emptylines sections + { $$ = $1; $$->next = $4; } section: SECTION_HEADER fields @@ -113,6 +113,12 @@ continuations: free ($1); free ($2); } +emptylines: + /* empty */ +...
2015 Mar 13
1
[PATCH] builder: handle empty lines in indexes before first section (RHBZ#1201526)
...od-3 diff --git a/builder/index-parse.y b/builder/index-parse.y index 8ea2d73..82ea9d2 100644 --- a/builder/index-parse.y +++ b/builder/index-parse.y @@ -104,10 +104,10 @@ index: { context->parsed_index = $2; } sections: - section emptylines - { $$ = $1; } - | section EMPTY_LINE emptylines sections - { $$ = $1; $$->next = $4; } + emptylines section emptylines + { $$ = $2; } + | emptylines section EMPTY_LINE emptylines sections + { $$ = $2; $$->next = $5; } | emptylines { $$ = NULL; } diff --git a/builder/test-virt-index-v...
2017 Oct 26
1
[PATCH] builder: ignore spaces after repo identifiers (RHBZ#1506511)
...ilder/test-virt-index-validate-good-4 diff --git a/builder/index-scan.l b/builder/index-scan.l index bdb474b33..49dad72bc 100644 --- a/builder/index-scan.l +++ b/builder/index-scan.l @@ -78,8 +78,9 @@ extern void scanner_destroy (yyscan_t scanner); ^\n { return EMPTY_LINE; } /* [...] marks beginning of a section. */ -^"["[-A-Za-z0-9._]+"]"\n { - yylval->str = strndup (yytext+1, yyleng-3); +^"["[-A-Za-z0-9._]+"]"[[:blank:]]*\n { + const char *end = strrchr (yytext, ']')...
2014 Mar 20
3
[PATCH 1/2] builder: allow the index parser to parse files with no sections
...| 2 ++ builder/website/validate.sh | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/builder/index-parse.y b/builder/index-parse.y index 9355bd4..5133959 100644 --- a/builder/index-parse.y +++ b/builder/index-parse.y @@ -108,6 +108,8 @@ sections: { $$ = $1; } | section EMPTY_LINE emptylines sections { $$ = $1; $$->next = $4; } + | emptylines + { $$ = NULL; } section: SECTION_HEADER fields diff --git a/builder/website/validate.sh b/builder/website/validate.sh index bd9a4ed..f2e24cf 100755 --- a/builder/website/validate.sh +++ b/builder/websit...
2015 Jul 08
7
[PATCH 0/6] RFC: basic subscription-manager support in virt-customize
Hi, this series introduces a basic support for registering/attaching/unregistering RHEL guests using subscription-manager, so it is possible to do for example: $ cat <<EOF > sm.conf [general] username=user password=pass [attach-0] pool=ID EOF $ virt-customize -a rhel-guest.qcow2 \ --sm-config sm.conf --sm-register --sm-attach 0 \ --install pkg1 --install pkg2
2014 Apr 02
2
[PATCH] builder: better handle some index parsing errors
...arse.y | 1 + builder/index-scan.l | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/builder/index-parse.y b/builder/index-parse.y index f08a683..310870d 100644 --- a/builder/index-parse.y +++ b/builder/index-parse.y @@ -78,6 +78,7 @@ typedef void *yyscan_t; %token EMPTY_LINE %token PGP_PROLOGUE %token PGP_EPILOGUE +%token UNKNOWN_LINE %type <section> sections section %type <field> fields field diff --git a/builder/index-scan.l b/builder/index-scan.l index 073d85f..e3fe377 100644 --- a/builder/index-scan.l +++ b/builder/index...
2014 Mar 19
7
[PATCH 1/3] builder: make the C index parser reentrant
...; */ /* Ignore comments - '#' MUST appear at the start of a line. */ -^"#".*\n { seen_comments++; } +^"#".*\n { yyextra->seen_comments++; } /* An empty line is significant. */ ^\n { return EMPTY_LINE; } /* [...] marks beginning of a section. */ ^"["[-A-Za-z0-9._]+"]"\n { - yylval.str = strndup (yytext+1, yyleng-3); + yylval->str = strndup (yytext+1, yyleng-3); return SECTION_HEADER;...