search for: section_head

Displaying 11 results from an estimated 11 matches for "section_head".

Did you mean: section_header
2014 Jan 21
1
[PATCH] builder: allow more empty lines in index files
...0 @@ 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 */ + {} + | EMPTY_LINE emptylines + {} + %% void -- 1.8.3.1
2017 Oct 26
1
[PATCH] builder: ignore spaces after repo identifiers (RHBZ#1506511)
...yylval->str = strndup (yytext+1, yyleng-3); +^"["[-A-Za-z0-9._]+"]"[[:blank:]]*\n { + const char *end = strrchr (yytext, ']'); + yylval->str = strndup (yytext+1, end-yytext-1); return SECTION_HEADER; } diff --git a/builder/test-virt-index-validate-good-4 b/builder/test-virt-index-validate-good-4 new file mode 100644 index 000000000..8e8d1065b --- /dev/null +++ b/builder/test-virt-index-validate-good-4 @@ -0,0 +1,3 @@ +# Empty spaces after the repository identifier +[fo...
2014 Mar 20
3
[PATCH 1/2] builder: allow the index parser to parse files with no sections
.../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/website/validate.sh @@ -19,6 +19,13 @@ export LANG=C set -e +fn=test-filename-for-index-validate + +rm -f $fn +touch $fn + $VG ../virt-i...
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
2020 Mar 11
0
[PATCH -next 000/491] treewide: use fallthrough;
...$pattern_files =~ /^\s*$/); # Find the section the first file matches my $pattern_file = @new_patterns[0]; my $section_output = `./scripts/get_maintainer.pl --nogit --nogit-fallback --sections --pattern-depth=1 $pattern_file`; my @section = split('\n', $section_output); my $section_header = @section[0]; print("Section: <$section_header>\n"); # Skip the section if it's already done print("Already done '$section_header'\n") if ($sections_done{$section_header}); next if ($sections_done{$section_header}++); # Find all the .[ch] file...
2020 Mar 11
0
[PATCH -next 000/491] treewide: use fallthrough;
...$pattern_files =~ /^\s*$/); # Find the section the first file matches my $pattern_file = @new_patterns[0]; my $section_output = `./scripts/get_maintainer.pl --nogit --nogit-fallback --sections --pattern-depth=1 $pattern_file`; my @section = split('\n', $section_output); my $section_header = @section[0]; print("Section: <$section_header>\n"); # Skip the section if it's already done print("Already done '$section_header'\n") if ($sections_done{$section_header}); next if ($sections_done{$section_header}++); # Find all the .[ch] file...
2020 Mar 11
0
[PATCH -next 000/491] treewide: use fallthrough;
...$pattern_files =~ /^\s*$/); # Find the section the first file matches my $pattern_file = @new_patterns[0]; my $section_output = `./scripts/get_maintainer.pl --nogit --nogit-fallback --sections --pattern-depth=1 $pattern_file`; my @section = split('\n', $section_output); my $section_header = @section[0]; print("Section: <$section_header>\n"); # Skip the section if it's already done print("Already done '$section_header'\n") if ($sections_done{$section_header}); next if ($sections_done{$section_header}++); # Find all the .[ch] file...
2020 Mar 11
0
[PATCH -next 000/491] treewide: use fallthrough;
...$pattern_files =~ /^\s*$/); # Find the section the first file matches my $pattern_file = @new_patterns[0]; my $section_output = `./scripts/get_maintainer.pl --nogit --nogit-fallback --sections --pattern-depth=1 $pattern_file`; my @section = split('\n', $section_output); my $section_header = @section[0]; print("Section: <$section_header>\n"); # Skip the section if it's already done print("Already done '$section_header'\n") if ($sections_done{$section_header}); next if ($sections_done{$section_header}++); # Find all the .[ch] file...
2020 Mar 11
0
[PATCH -next 000/491] treewide: use fallthrough;
...$pattern_files =~ /^\s*$/); # Find the section the first file matches my $pattern_file = @new_patterns[0]; my $section_output = `./scripts/get_maintainer.pl --nogit --nogit-fallback --sections --pattern-depth=1 $pattern_file`; my @section = split('\n', $section_output); my $section_header = @section[0]; print("Section: <$section_header>\n"); # Skip the section if it's already done print("Already done '$section_header'\n") if ($sections_done{$section_header}); next if ($sections_done{$section_header}++); # Find all the .[ch] file...
2023 Apr 04
5
[RFC PATCH 0/5] fstests specific MAINTAINERS file
I think I might be mad to include that many mailing lists in this patchset... As I explained in [PATCH 1/5], fstests covers more and more fs testing thing, so we always get help from fs specific mailing list, due to they learn about their features and bugs more. Besides that, some folks help to review patches (relevant with them) more often. So I'd like to bring in the similar way of
2014 Mar 19
7
[PATCH 1/3] builder: make the C index parser reentrant
...{ 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; } /* field=value or field[subfield]=value */ ^[A-Za-z0-9_.]+("["[A-Za-z0-9_,.]+"]")?"=".*\n { size_t i = strcspn (yytext, "=["); - yylval.field = malloc (sizeof (struct field)); -...