[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][lintian/lintian][master] Make lintian-explain-tags exit with an error message when asked about a



Title: GitLab

Louis-Philippe Véronneau pushed to branch master at lintian / lintian

Commits:

  • c395dd75
    by Louis-Philippe Véronneau at 2025-06-27T20:18:30+00:00
    Make lintian-explain-tags exit with an error message when asked about a
    non-existing tag.
    
    Closes: #1042436
    

1 changed file:

Changes:

  • bin/lintian-explain-tags
    ... ... @@ -136,7 +136,9 @@ my @sorted = sort { lc($a->name) cmp lc($b->name) } @available;
    136 136
     
    
    137 137
     $output->describe_tags($profile->data, \@sorted, $TERMINAL_WIDTH);
    
    138 138
     
    
    139
    -exit any { !defined $profile->get_tag($_) } @selected;
    
    139
    +if ( any { !defined $profile->get_tag($_) } @selected) {
    
    140
    +    die "The tag '@selected' does not exist\n";
    
    141
    +}
    
    140 142
     
    
    141 143
     sub show_version {
    
    142 144
         say encode_utf8("$NEW_PROGRAM_NAME v$ENV{LINTIAN_VERSION}");
    


  • Reply to: