1Dpkg::Source::Package(3)         libdpkg-perl         Dpkg::Source::Package(3)
2
3
4

NAME

6       Dpkg::Source::Package - manipulate Debian source packages
7

DESCRIPTION

9       This module provides an object that can manipulate Debian source
10       packages. While it supports both the extraction and the creation of
11       source packages, the only API that is officially supported is the one
12       that supports the extraction of the source package.
13

FUNCTIONS

15       $string = get_default_diff_ignore_regex()
16           Returns the default diff ignore regex.
17
18       set_default_diff_ignore_regex($string)
19           Set a regex as the new default diff ignore regex.
20
21       @array = get_default_tar_ignore_pattern()
22           Returns the default tar ignore pattern, as an array.
23

METHODS

25       $p = Dpkg::Source::Package->new(filename => $dscfile, options => {})
26           Creates a new object corresponding to the source package described
27           by the file $dscfile.
28
29           The options hash supports the following options:
30
31           skip_debianization
32                   If set to 1, do not apply Debian changes on the extracted
33                   source package.
34
35           skip_patches
36                   If set to 1, do not apply Debian-specific patches. This
37                   options is specific for source packages using format "2.0"
38                   and "3.0 (quilt)".
39
40           require_valid_signature
41                   If set to 1, the check_signature() method will be stricter
42                   and will error out if the signature can't be verified.
43
44           require_strong_checksums
45                   If set to 1, the check_checksums() method will be stricter
46                   and will error out if there is no strong checksum.
47
48           copy_orig_tarballs
49                   If set to 1, the extraction will copy the upstream tarballs
50                   next the target directory. This is useful if you want to be
51                   able to rebuild the source package after its extraction.
52
53       $p->get_filename()
54           Returns the filename of the DSC file.
55
56       $p->get_files()
57           Returns the list of files referenced by the source package. The
58           filenames usually do not have any path information.
59
60       $p->check_checksums()
61           Verify the checksums embedded in the DSC file. It requires the
62           presence of the other files constituting the source package. If any
63           inconsistency is discovered, it immediately errors out. It will
64           make sure at least one strong checksum is present.
65
66           If the object has been created with the "require_strong_checksums"
67           option, then any problem will result in a fatal error.
68
69       $bool = $p->is_signed()
70           Returns 1 if the DSC files contains an embedded OpenPGP signature.
71           Otherwise returns 0.
72
73       $p->check_signature()
74           Implement the same OpenPGP signature check that dpkg-source does.
75           In case of problems, it prints a warning or errors out.
76
77           If the object has been created with the "require_valid_signature"
78           option, then any problem will result in a fatal error.
79
80       $p->extract($targetdir)
81           Extracts the source package in the target directory $targetdir.
82           Beware that if $targetdir already exists, it will be erased (as
83           long as the no_overwrite_dir option is set).
84

CHANGES

86   Version 1.02 (dpkg 1.18.7)
87       New option: require_strong_checksums in check_checksums().
88
89   Version 1.01 (dpkg 1.17.2)
90       New functions: get_default_diff_ignore_regex(),
91       set_default_diff_ignore_regex(), get_default_tar_ignore_pattern()
92
93       Deprecated variables: $diff_ignore_default_regexp,
94       @tar_ignore_default_pattern
95
96   Version 1.00 (dpkg 1.16.1)
97       Mark the module as public.
98
99
100
1011.18.25                           2018-06-26          Dpkg::Source::Package(3)
Impressum