pkgcheck.checks.pkgdir module

class pkgcheck.checks.pkgdir.BannedCharacter(filename, chars, **kwargs)[source]

Bases: PackageResult, Error

File or directory name doesn’t abide by GLEP 31 requirements.

See the official GLEP 31 documentation [1] for details.

property desc

Result description.

name = 'BannedCharacter'
class pkgcheck.checks.pkgdir.DuplicateFiles(files, **kwargs)[source]

Bases: PackageResult, Warning

Two or more identical files in FILESDIR.

property desc

Result description.

name = 'DuplicateFiles'
class pkgcheck.checks.pkgdir.EmptyFile(filename, **kwargs)[source]

Bases: PackageResult, Warning

File in FILESDIR is empty.

property desc

Result description.

name = 'EmptyFile'
class pkgcheck.checks.pkgdir.EqualVersions(versions, **kwargs)[source]

Bases: PackageResult, Error

Ebuilds that have equal versions.

For example, cat/pn-1.0.2, cat/pn-1.0.2-r0, cat/pn-1.0.2-r00 and cat/pn-1.000.2 all have equal versions according to PMS and therefore shouldn’t exist in the same repository.

property desc

Result description.

name = 'EqualVersions'
class pkgcheck.checks.pkgdir.EqualVersionsCheck(options, **kwargs)[source]

Bases: Check

Scan package ebuilds for semantically equal versions.

feed(pkgset)[source]

Handle functionality against the passed in item.

known_results = frozenset({<class 'pkgcheck.checks.pkgdir.EqualVersions'>})
scope = <PackageScope desc='package' @0x7f6c6d509a10>
class pkgcheck.checks.pkgdir.ExecutableFile(filename, **kwargs)[source]

Bases: PackageResult, Warning

File has executable bit, but doesn’t need it.

property desc

Result description.

name = 'ExecutableFile'
class pkgcheck.checks.pkgdir.InvalidPN(ebuilds, **kwargs)[source]

Bases: PackageResult, Error

Ebuilds that have invalid package names.

property desc

Result description.

name = 'InvalidPN'
class pkgcheck.checks.pkgdir.InvalidUTF8(filename, err, **kwargs)[source]

Bases: PackageResult, Error

File isn’t UTF-8 compliant.

property desc

Result description.

name = 'InvalidUTF8'
class pkgcheck.checks.pkgdir.LiveOnlyCheck(*args, git_addon)[source]

Bases: GentooRepoCheck

Scan for packages with only live versions.

feed(pkgset)[source]

Handle functionality against the passed in item.

known_results = frozenset({<class 'pkgcheck.checks.pkgdir.LiveOnlyPackage'>})
required_addons = (<class 'pkgcheck.addons.git.GitAddon'>,)
scope = <PackageScope desc='package' @0x7f6c6d509a10>
class pkgcheck.checks.pkgdir.LiveOnlyPackage(age, **kwargs)[source]

Bases: PackageResult, Warning

Package has only had VCS-based ebuilds.

property desc

Result description.

name = 'LiveOnlyPackage'
class pkgcheck.checks.pkgdir.MismatchedPN(ebuilds, **kwargs)[source]

Bases: PackageResult, Error

Ebuilds that have different names than their parent directory.

property desc

Result description.

name = 'MismatchedPN'
class pkgcheck.checks.pkgdir.PkgDirCheck(*args, git_addon)[source]

Bases: Check

Scan ebuild directory for various file-related issues.

digest_algo = 'sha256'
feed(pkgset)[source]

Handle functionality against the passed in item.

ignore_dirs = frozenset({'.bzr', '.svn', 'cvs'})
known_results = frozenset({<class 'pkgcheck.checks.pkgdir.BannedCharacter'>, <class 'pkgcheck.checks.pkgdir.DuplicateFiles'>, <class 'pkgcheck.checks.pkgdir.EmptyFile'>, <class 'pkgcheck.checks.pkgdir.ExecutableFile'>, <class 'pkgcheck.checks.pkgdir.InvalidPN'>, <class 'pkgcheck.checks.pkgdir.InvalidUTF8'>, <class 'pkgcheck.checks.pkgdir.MismatchedPN'>, <class 'pkgcheck.checks.pkgdir.SizeViolation'>, <class 'pkgcheck.checks.pkgdir.TotalSizeViolation'>, <class 'pkgcheck.checks.pkgdir.UnknownPkgDirEntry'>})
required_addons = (<class 'pkgcheck.addons.git.GitAddon'>,)
scope = <PackageScope desc='package' @0x7f6c6d509a10>
class pkgcheck.checks.pkgdir.SizeViolation(filename, size, **kwargs)[source]

Bases: PackageResult, Warning

File in $FILESDIR is too large.

property desc

Result description.

limit = 20480
name = 'SizeViolation'
class pkgcheck.checks.pkgdir.TotalSizeViolation(size, **kwargs)[source]

Bases: PackageResult, Warning

The total size of $FILESDIR is too large.

property desc

Result description.

limit = 51200
name = 'TotalSizeViolation'
class pkgcheck.checks.pkgdir.UnknownPkgDirEntry(filenames, **kwargs)[source]

Bases: PackageResult, Warning

Unknown files or directories in package directory.

Relevant for the gentoo repo only since the spec states that a package directory may contain other files or directories.

property desc

Result description.

name = 'UnknownPkgDirEntry'