Parse::DebControl::Patch(3pm)

Parse::DebControl::Patch3pm

Easy oo parsing of debian patch file metadata (dep3) data

Usage

    use Parse::DebControl::Patch
    $parser = new Parse::DebControl::Patch;
    $data = $parser->parse_mem($control_data, $options);
    $data = $parser->parse_file('./debian/control', $options);
    $data = $parser->parse_web($url, $options);

Overview

    The patch-file metadata specification (DEP3) diverts from the normal debian/control
    rules primarly of the "free-form" field specification. To handle this we most create
    an parser specifically for this format and hardcode these rules direclty into the code.
    As we will always only have one block of data, we will return the hashref directly
    instead of enclosing it into an array.
    The field B<Forwarded> is magic and will always exists in the out data, even if not specified
    in the indata. It can only have three values, I<yes>, I<no>, and I<not-needed>. If not specified
    it will have the value I<yes>.

Releases

7 releases since Debian 7 (Wheezy); the text changed 3 times.

  1. 7
  2. 8–10
  3. 11
  4. 12–13

From libparse-debcontrol-perl 2.005-6 in Debian 13 (Trixie). Parsed by carta from the page's man source.