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

List:       gentoo-dev
Subject:    Re: [gentoo-dev] Please do not stabilize packages for arches you
From:       Jason Wever <weeve () gentoo ! org>
Date:       2003-12-31 1:50:27
Message-ID: 20031230205027.5beb7484 () voyager ! weeve ! org
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]


On Sun, 28 Dec 2003 20:09:54 +0100
Guy Martin <gmsoft@gentoo.org> wrote:

> > 
> > If anyone is interested, I've attached a diff for imlate to format the
> > output into more of a table.  Makes it a little more readable.
> > 
> Thanks for this awesome patch. I've also made a bugfix. It now checks if
> ebuilds are masked or not in package.mask.

Since I have this strange fetish to make things look nice in an 80 column
wide xterm, i've get again messed with the output of imlate.  This is
patched against the latest imlate available from GMsoft.

Now, imlate will report the package name, version for test arch, and
version for baseline arch.  An example is below (though slightly adjusted
to make it look purdy in the mail clients)..

Package Name                            sparc               x86 
-----------------------------------------------------------------
app-admin/pwgen                         2.01-r0           2.03-r1         
   

Ahh, it's beautiful.

-- 
Jason Wever
Gentoo/Sparc Co-Team Lead

["imlate.diff" (text/x-diff)]

--- imlate.orig	2003-12-30 20:42:51.000000000 -0500
+++ imlate	2003-12-30 20:28:50.000000000 -0500
@@ -40,7 +40,7 @@
 total = 0
 
 all_cp_list = portage.portdb.cp_all()
-print my_group.ljust(40) + "\t" + target_group.ljust(40)
+print "Package Name".ljust(40) + my_group.ljust(20) + target_group.ljust(20)
 print "-" * 80
 for cp in all_cp_list:
 	cpv = portage.portdb.cp_list(cp)
@@ -49,12 +49,19 @@
 	my_list = portage.portdb.gvisible(cpv)
 	if not len(my_list): continue
 	my_newest = portage.best(my_list);
-
+	
 	portage.groups = [target_group]
 	target_list = portage.portdb.gvisible(cpv)
 	if not len(target_list): continue
 	target_newest = portage.best(target_list)
 	if not portage.best([my_newest, target_newest]) == my_newest :
-		print my_newest.ljust(40) + "\t" + target_newest.ljust(40)
+		my_newest_list = portage.catpkgsplit(my_newest)
+		target_newest_list = portage.catpkgsplit(target_newest)
+
+		package_name = my_newest_list[0] + '/' + my_newest_list[1] 
+		my_newest_ver = my_newest_list[2] + '-' + my_newest_list[3] 
+		target_newest_ver =  target_newest_list[2] + '-' + target_newest_list[3]
+		print package_name.ljust(40) + my_newest_ver.ljust(20) + target_newest_ver.ljust(20)
 		total = total + 1
+print "-" * 80
 print "A total of " + str(total) + " ebuilds seems outaded on " + my_group

[Attachment #6 (application/pgp-signature)]

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

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