[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian package component belonging



Hi Jerome,

Jerome BENOIT wrote:
> I was looking for a ready to use tool to extract the components:
> I guess I have to write my own stuff to do so.

How about:

  $ tar --to-stdout -xf emacs23-non-dfsg_23.4+1-1.debian.tar.gz debian/control | grep ^Section:
  Section: non-free/editors
  Section: non-free/editors

Which can be automated to extract just the field from the packages.

  $ tar xf emacs23-non-dfsg_23.4+1-1.debian.tar.gz --to-stdout debian/control | sed -n '/^Section:/{s/.* //;s@/.*@@p;q}'
  non-free

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: