Compare FreeBSD pkg files by metadata.
Project description
Compare FreeBSD pkg files by metadata
pkgdiff is a plugin for the FreeBSD package manager pkg as well as a Python extension for comparing package files by their metadata.
To that end it uses libpkg (distributed along with the pkg commandline tools), to open and parse package files and either a basic string compare or a line-by-line diff algorithm to complare the metadata fields.
How to install
The Python extension is easily installed by running:
pip install pkgdiff
Basic usage
import pkgdiff
if pkgdiff.compare('pkg-1.14.5.txz', 'pkg-1.14.6.txz', exclude=['version']):
print('packages are equal (ignoring version)')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pkgdiff-0.1.tar.gz
(21.2 kB
view details)
File details
Details for the file pkgdiff-0.1.tar.gz
.
File metadata
- Download URL: pkgdiff-0.1.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d20b24e683f4bcfb03c4da2bcc233a5ad8e4ad554127ada1f02c9c5ff1b8ade |
|
MD5 | 83ae92ec8288db501bcf6b0ada04f4ed |
|
BLAKE2b-256 | 9969ef90411fd1152d00e988a7638ffe4754e3d3e1cb9781a26b293d994a62d7 |