tapmap.model.appinfo.linux_package_info
tapmap.model.appinfo.linux_package_info
Debian package provenance inspection via dpkg and apt-cache.
_GENERIC_MAINTAINERS = frozenset({'Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>', 'Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>'})
module-attribute
find_owning_package(real_path)
Return the dpkg package owning real_path, or None if unowned/unavailable.
Source code in src/tapmap/model/appinfo/linux_package_info.py
15 16 17 18 19 20 21 22 23 24 25 26 27 | |
_dpkg_verify_flagged_paths(verify_output)
Return the pathnames dpkg -V reports a check failure or missing-file for.
Parses the fixed --verify-format=rpm layout: a 9-character check string (or the literal "missing"), an optional "c" conffile marker, then the pathname, optionally followed by a parenthesized error message.
Source code in src/tapmap/model/appinfo/linux_package_info.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
verify_package_integrity(package, real_path)
Return True if dpkg -V finds no integrity problem for real_path specifically.
A problem reported for a different file owned by the same package does not affect this result. dpkg -V's exit code does not indicate whether problems were found (problems are reported via stdout regardless of exit code); a nonzero exit means the verification itself could not be completed (e.g. the package can no longer be found) and is never treated as clean.
Source code in src/tapmap/model/appinfo/linux_package_info.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | |
_installed_version_has_repo_source(policy_output)
Return True if apt-cache policy's installed-version block cites a repo URL.
Source code in src/tapmap/model/appinfo/linux_package_info.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | |
is_repo_backed(package)
Return True if package's installed version is available from a configured APT repo.
Source code in src/tapmap/model/appinfo/linux_package_info.py
92 93 94 95 96 97 98 99 100 101 102 | |
find_creator(package)
Return package's Maintainer, or None if unavailable or a generic distro team.
Source code in src/tapmap/model/appinfo/linux_package_info.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |
_package_desktop_files(package)
Return package's installed .desktop file paths under /usr/share/applications.
Source code in src/tapmap/model/appinfo/linux_package_info.py
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | |
_parse_primary_desktop_entry(desktop_path)
Return Name= from a .desktop file's [Desktop Entry] section, or None if NoDisplay=true.
Source code in src/tapmap/model/appinfo/linux_package_info.py
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | |
find_desktop_name(package)
Return package's display name from its one visible .desktop entry, if unambiguous.
Source code in src/tapmap/model/appinfo/linux_package_info.py
168 169 170 171 172 173 174 | |