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 hashes)