Looks interesting. Here is a Lua script that will do the same thing in APT-RPM:
for i, pkg in pairs(pkglist()) do ver = pkgvercur(pkg) verlist = pkgverlist(pkg) if ver and not verisonline(ver) and table.getn(verlist) == 1 then print(pkgname(pkg) .. "-" .. verstr(ver)) end end
To run it, execute the following command:
apt-cache script ./list-extras.lua
If you want more comfort you may easily turn this into an additonal apt-cache command, and run it like:
To do that, insert the following lines at the top of the Lua file:
if command_args ~= "list-extras" then return end command_consume = 1
And register it in your configuration with:
Notice that, unfortunately, this will only work with the upcoming APT-RPM 0.5.15cnc4, since the verisonline() function was implemented a few seconds ago. :-) The functionality was already there, but wasn't being exported to Lua. If you want it working now, you can check the revision 243 in the repository.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds