---
name: "Lintian::Tag::Override"
section: "3"
platform: "linux"
package: "lintian"
version: "2.15.0"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Lintian::Tag::Override"
---

# Lintian::Tag::Override(3)

## NAME

Lintian::Tag::Override -- Representation of a Lintian Override

## SYNOPSIS

```
 use Lintian::Tag::Override;

 my $data = {
    'comments' => ['some', 'multi-line', 'comments']
 };
 my $override = Lintian::Tag::Override->new('unused-override', $data);
 my $comments = $override->comments;
 if ($override->overrides("some extra") ) {
     # do something
 }
```

## DESCRIPTION

Represents a Lintian Override.

## METHODS

- Lintian::Tag::Override-\>new($tag, $data)

  Creates a new override for `$tag`.  `$data` should be a hashref with the following fields.

  - arch

    Architectures this override applies too (not really used).

  - comments

    A list of comments (each item is a separate line)

  - extra

    The extra part of the override.  If it contains a "\*" is will considered a pattern.

- $override-\>tag

  Returns the name of the tag.

- $override-\>arch

  Returns the architecture this tag applies to.

- $override-\>comments

  Returns a list of lines that makes up the comments for this override.

  Do not modify the contents of this list.

- $override-\>extra

  Returns the extra of this tag (or the empty string, if there is no extra).

- $override-\>is\_pattern

  Returns a truth value if the extra is a pattern.

- $override-\>overrides($extra)

  Returns a truth value if this override applies to this extra.

## AUTHOR

Originally written by Niels Thykier \<niels@thykier.net\> for Lintian.

## SEE ALSO

[**lintian**(1)](/lintian/1.md)

Lintian::Tags
