1Dpkg::Vendor(3perl) libdpkg-perl Dpkg::Vendor(3perl)
2
3
4
6 Dpkg::Vendor - get access to some vendor specific information
7
9 The files in $Dpkg::CONFDIR/origins/ can provide information about
10 various vendors who are providing Debian packages. Currently those
11 files look like this:
12
13 Vendor: Debian
14 Vendor-URL: https://www.debian.org/
15 Bugs: debbugs://bugs.debian.org
16
17 If the vendor derives from another vendor, the file should document the
18 relationship by listing the base distribution in the Parent field:
19
20 Parent: Debian
21
22 The file should be named according to the vendor name. The usual
23 convention is to name the vendor file using the vendor name in all
24 lowercase, but some variation is permitted. Namely, spaces are mapped
25 to dashes ('-'), and the file can have the same casing as the Vendor
26 field, or it can be capitalized.
27
29 $dir = get_vendor_dir()
30 Returns the current dpkg origins directory name, where the vendor
31 files are stored.
32
33 $fields = get_vendor_info($name)
34 Returns a Dpkg::Control object with the information parsed from the
35 corresponding vendor file in $Dpkg::CONFDIR/origins/. If $name is
36 omitted, it will use $Dpkg::CONFDIR/origins/default which is
37 supposed to be a symlink to the vendor of the currently installed
38 operating system. Returns undef if there's no file for the given
39 vendor.
40
41 $name = get_vendor_file($name)
42 Check if there's a file for the given vendor and returns its name.
43
44 $name = get_current_vendor()
45 Returns the name of the current vendor. If DEB_VENDOR is set, it
46 uses that first, otherwise it falls back to parsing
47 $Dpkg::CONFDIR/origins/default. If that file doesn't exist, it
48 returns undef.
49
50 $object = get_vendor_object($name)
51 Return the Dpkg::Vendor::* object of the corresponding vendor. If
52 $name is omitted, return the object of the current vendor. If no
53 vendor can be identified, then return the Dpkg::Vendor::Default
54 object.
55
56 run_vendor_hook($hookid, @params)
57 Run a hook implemented by the current vendor object.
58
60 Version 1.01 (dpkg 1.17.0)
61 New function: get_vendor_dir().
62
63 Version 1.00 (dpkg 1.16.1)
64 Mark the module as public.
65
67 deb-origin(5).
68
69
70
711.21.9 2022-08-04 Dpkg::Vendor(3perl)