{
    "content": [
        {
            "type": "text",
            "text": "# Dpkg::Vendor (perldoc)\n\n## NAME\n\nDpkg::Vendor - get access to some vendor specific information\n\n## DESCRIPTION\n\nThe files in $Dpkg::CONFDIR/origins/ can provide information about various vendors who are\nproviding Debian packages. Currently those files look like this:\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **FUNCTIONS** (1 subsections)\n- **CHANGES**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Dpkg::Vendor",
        "section": "",
        "mode": "perldoc",
        "summary": "Dpkg::Vendor - get access to some vendor specific information",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "deb-origin",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/deb-origin/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "FUNCTIONS",
                "lines": 22,
                "subsections": [
                    {
                        "name": "run_vendor_hook",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "CHANGES",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Dpkg::Vendor - get access to some vendor specific information\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The files in $Dpkg::CONFDIR/origins/ can provide information about various vendors who are\nproviding Debian packages. Currently those files look like this:\n\nVendor: Debian\nVendor-URL: https://www.debian.org/\nBugs: debbugs://bugs.debian.org\n\nIf the vendor derives from another vendor, the file should document the relationship by listing\nthe base distribution in the Parent field:\n\nParent: Debian\n\nThe file should be named according to the vendor name. The usual convention is to name the\nvendor file using the vendor name in all lowercase, but some variation is permitted. Namely,\nspaces are mapped to dashes ('-'), and the file can have the same casing as the Vendor field, or\nit can be capitalized.\n",
                "subsections": []
            },
            "FUNCTIONS": {
                "content": "$dir = getvendordir()\nReturns the current dpkg origins directory name, where the vendor files are stored.\n\n$fields = getvendorinfo($name)\nReturns a Dpkg::Control object with the information parsed from the corresponding vendor\nfile in $Dpkg::CONFDIR/origins/. If $name is omitted, it will use\n$Dpkg::CONFDIR/origins/default which is supposed to be a symlink to the vendor of the\ncurrently installed operating system. Returns undef if there's no file for the given vendor.\n\n$name = getvendorfile($name)\nCheck if there's a file for the given vendor and returns its name.\n\n$name = getcurrentvendor()\nReturns the name of the current vendor. If DEBVENDOR is set, it uses that first, otherwise\nit falls back to parsing $Dpkg::CONFDIR/origins/default. If that file doesn't exist, it\nreturns undef.\n\n$object = getvendorobject($name)\nReturn the Dpkg::Vendor::* object of the corresponding vendor. If $name is omitted, return\nthe object of the current vendor. If no vendor can be identified, then return the\nDpkg::Vendor::Default object.\n",
                "subsections": [
                    {
                        "name": "run_vendor_hook",
                        "content": "Run a hook implemented by the current vendor object.\n"
                    }
                ]
            },
            "CHANGES": {
                "content": "Version 1.01 (dpkg 1.17.0)\nNew function: getvendordir().\n\nVersion 1.00 (dpkg 1.16.1)\nMark the module as public.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "deb-origin(5).\n",
                "subsections": []
            }
        }
    }
}