Dpkg::BuildAPI(3perl)

Dpkg::BuildAPI3perl

Handle build api versions

Overview

The Dpkg::BuildAPI module provides functions to fetch the current dpkg build API level.

Note: This is a private module, its API can change at any time.

Functions

$level = get_build_api([$ctrl])

Get the build API level, from the environment variable DPKG_BUILD_API, or if not defined and a $ctrl Dpkg::Control::Info object passed as an argument, from its build dependency fields. If no $ctrl object gets passed the previous value obtained is returned.

reset_build_api()

Reset the cached build API level.

Changes

Version 0.xx

This is a private module.

Releases

2 releases since Debian 13 (Trixie); the text changed 1 time.

  1. 13
  2. Arch

From dpkg 1.23.11-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.