{
    "mode": "perldoc",
    "parameter": "Dpkg::Deps::Multiple",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Dpkg%3A%3ADeps%3A%3AMultiple/json",
    "generated": "2026-06-16T22:48:01Z",
    "sections": {
        "NAME": {
            "content": "Dpkg::Deps::Multiple - base module to represent multiple dependencies\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The Dpkg::Deps::Multiple module provides objects implementing various types of dependencies. It\nis the base class for Dpkg::Deps::{AND,OR,Union}.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "$dep = Dpkg::Deps::Multiple->new(%opts);\nCreates a new object.\n\n$dep->reset()\nClears any dependency information stored in $dep so that $dep->isempty() returns true.\n\n$dep->add(@deps)\nAdds new dependency objects at the end of the list.\n\n$dep->getdeps()\nReturns a list of sub-dependencies.\n\n$dep->sort()\nSorts alphabetically the internal list of dependencies.\n\n$dep->archisconcerned($arch)\nReturns true if at least one of the sub-dependencies apply to this architecture.\n\n$dep->reducearch($arch)\nSimplifies the dependencies to contain only information relevant to the given architecture.\nThe non-relevant sub-dependencies are simply removed.\n\nThis trims off the architecture restriction list of Dpkg::Deps::Simple objects.\n\n$dep->hasarchrestriction()\nReturns the list of package names that have such a restriction.\n\n$dep->profileisconcerned()\nReturns true if at least one of the sub-dependencies apply to this profile.\n\n$dep->reduceprofiles()\nSimplifies the dependencies to contain only information relevant to the given profile. The\nnon-relevant sub-dependencies are simply removed.\n\nThis trims off the profile restriction list of Dpkg::Deps::Simple objects.\n\n$dep->isempty()\nReturns true if the dependency is empty and doesn't contain any useful information. This is\ntrue when a (descendant of) Dpkg::Deps::Multiple contains an empty list of dependencies.\n\n$dep->mergeunion($otherdep)\nThis method is not meaningful for this object, and will always croak.\n",
            "subsections": []
        },
        "CHANGES": {
            "content": "Version 1.02 (dpkg 1.17.10)\nNew methods: Add $dep->profileisconcerned() and $dep->reduceprofiles().\n\nVersion 1.01 (dpkg 1.16.1)\nNew method: Add $dep->reset().\n\nVersion 1.00 (dpkg 1.15.6)\nMark the module as public.\n",
            "subsections": []
        }
    },
    "summary": "Dpkg::Deps::Multiple - base module to represent multiple dependencies",
    "flags": [],
    "examples": [],
    "see_also": []
}