From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-130518-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1RLaSq-0007e6-PV
	for garchives@archives.gentoo.org; Wed, 02 Nov 2011 13:02:44 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B662621C093;
	Wed,  2 Nov 2011 13:02:30 +0000 (UTC)
Received: from mail-yw0-f61.google.com (mail-yw0-f61.google.com [209.85.213.61])
	by pigeon.gentoo.org (Postfix) with ESMTP id B819021C02F
	for <gentoo-user@lists.gentoo.org>; Wed,  2 Nov 2011 13:01:29 +0000 (UTC)
Received: by ywa17 with SMTP id 17so151391ywa.16
        for <gentoo-user@lists.gentoo.org>; Wed, 02 Nov 2011 06:01:28 -0700 (PDT)
Received: by 10.236.124.77 with SMTP id w53mr1215827yhh.11.1320238888654; Wed,
 02 Nov 2011 06:01:28 -0700 (PDT)
Path: glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: linux.gentoo.user
Date: Wed, 2 Nov 2011 06:01:28 -0700 (PDT)
In-Reply-To: <hSHXs-Yc-9@gated-at.bofh.it>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=90.190.167.138;
 posting-account=m_uFKxAAAAA6XrrK4JGBpeJAGAdNhqIk
NNTP-Posting-Host: 90.190.167.138
References: <hSdwm-cK-11@gated-at.bofh.it> <hSq0y-4uf-25@gated-at.bofh.it>
 <hSqWC-657-23@gated-at.bofh.it> <hSHXs-Yc-9@gated-at.bofh.it>
User-Agent: G2/1.0
X-Google-Web-Client: true
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Message-ID: <24889171.1639.1320238888584.JavaMail.geo-discussion-forums@yqhd1>
Subject: Re: [gentoo-user] Consistency checking
From: Leho Kraav <leho@kraav.com>
To: linux.gentoo.user@googlegroups.com
Cc: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset=ISO-8859-1
X-Archives-Salt: 073232dc-8b44-4c1d-9f1b-b12128771e28
X-Archives-Hash: bd56325fe7814db276c41dc541cf81da

On Wednesday, November 2, 2011 2:20:02 PM UTC+2, Urs Schutz wrote:
> > eix-test-obsolete -d
> is easy if it is done often, as there is little corrective
> action to do on a day to day basis.

I have been wondering if it's possible to get this particular check's output to be machine readable, so it could be used in automated scripts. Similar to what qlist -IC <atom> does.

First, I think the different checks need to be separatable with cmdline arguments, so one wouldn't have to start parsing for some header type thing to know what atom list applies to what file.

After that, the machine readable output needs to be as simple as possible, no colors, parenthesis, and whatnot.

Further thoughts welcome, and suggestions for other ways of automating this cleanup. Only thing I know of was udept, but that's been dead upstream for a while.

I should also note that I keep my /etc in git, so naturally all automated actions would be commited and therefore tracked - no need to fear losing some important configuration item, if that is at all applicable here even.