craft_parts.packages.deb_package module¶
Debian package representation.
- class craft_parts.packages.deb_package.DebPackage(name, arch=None, version=None)[source]¶
Bases:
object
Debian package representation.
- Parameters:
name (
str
)arch (
Optional
[str
])version (
Optional
[str
])
-
arch:
str
|None
= None¶
- classmethod from_unparsed(package)[source]¶
Parse package supported in yaml.
Package Format: <package-name>[:<arch>][=<version>]
Examples: “foo”, “foo:i386”, “foo=1.5”, “foo:i386=1.5”
- Parameters:
package (
str
) – Package to parse.- Return type:
- Returns:
DebPackage with populated arch & version, if any.
-
name:
str
¶
-
version:
str
|None
= None¶