New package info fields
Anders F Björklund
afb at algonet.se
Sat Jan 16 04:36:36 PST 2010
I've added the "source" and "license" fields to PackageInfo.
https://bugs.launchpad.net/smart/+bug/267369 (source)
For RPM, getSource() returns the source RPM - minus the
.src.rpm suffix. For instance: name1-version1-release1
(It does not use the @src or @nosrc, like it did earlier)
For DEB, getSource() returns the package name and version,
similar to binary. For instance: name1_version1-release1
(It does not use the dpkg "space-and-parenthesis" format)
The other formats currently don't have source packages.
It's also missing from any old cache, until rebuilt...
https://bugs.launchpad.net/smart/+bug/254150 (license)
The getLicense() field returns the available info from the
rpm header or rpm metadata, but returns nothing for dpkg.
Field is used by PackageKit to determine free/non-free.
Both DEB and PKG use the entire COPYRIGHT/LICENSE file
for determining which license a package uses. And that
doesn't really fit into the current "one-liner" usage.
Neither source nor license shows up in the Smart GUI yet.
--anders
More information about the Smart
mailing list