Wednesday, October 27, 2010

XBPS: upcoming features for 0.6.2

I've been working in some missing features for the next XBPS version, and here they are:

  1. xbps-bin(8): modify the 'list' target to accept an optional argument to list packages in the specified state, so that you can list packages that need to be purged, configured and broken (will be used in the future).
  2. xbps-bin(8): added a new target 'find-files' to find which installed package(s) own a file. Exact matches "/bin/mount" or patterns "/usr/lib/libb[ao]b\*" can be specified.
  3. When updating a package and removing obsolete files, don't forget to remove those directories if they were empty.
The first item adds code to list any package registered on the system, regardless of its state; even it it's broken (well, broken means that some files were removed and/or modified, or that there are missing runtime dependencies, missing metadata files, etc). You can see the commig log here:

http://groups.google.com/group/xbps-commits/browse_thread/thread/cf450a3c6da4c09c

The second item adds code to find files owned by a package, it's well explained
here:

http://groups.google.com/group/xbps/browse_thread/thread/db5923dff1f42dac

Last item helps to remove obsolete and empty directories that aren't used anymore by any installed package.

Development won't stop and I'm looking for more ideas and features to be implemented for the next upcoming XBPS version, 0.6.2.

No comments: