[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    Re: [gentoo-dev] why do different ebuilds have the same version number?
From:       Brian Harring <ferringb () gentoo ! org>
Date:       2005-04-27 20:36:40
Message-ID: 20050427203640.GQ29554 () exodus ! wit ! org
[Download RAW message or body]

Slightly shorter variant...

python -c $'
import portage, time
from itertools import chain, imap
target=long(time.strftime("%s",time.gmtime())) - 24*60*60
pdb=portage.portdb
for cpv in chain(*imap(pdb.cp_list, pdb.cp_all())):
	flagged=False
	try:	mtime, eclasses = pdb.aux_get(cpv,["_mtime_","INHERITED"])
	except SystemExit:	raise
	except:	continue
	if mtime >= target:	flagged=True
	else:
		try:
			for e in eclasses.split():
				if pdb.eclassdb.eclasses[e][1] >= target:
					flagged=True
					break
		except KeyError:	flagged=True
	if flagged:	print cpv
'

~brian


[Attachment #3 (application/pgp-signature)]
-- 
gentoo-dev@gentoo.org mailing list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic