Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136999 - equery: show date of compilation
Summary: equery: show date of compilation
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-16 09:37 UTC by José González Monlleó
Modified: 2015-06-11 05:40 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
path for gentoolkit-0.2.2_pre4 (gentoolkit.path,4.66 KB, patch)
2006-06-19 09:02 UTC, José González Monlleó
Details | Diff
new patch for version gentoolkit-0.2.2_pre4 (gentoolkit.path,4.99 KB, patch)
2006-06-23 00:48 UTC, José González Monlleó
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description José González Monlleó 2006-06-16 09:37:26 UTC
--- /usr/bin/equery     2006-06-16 18:09:24.779650500 +0200
+++ equery      2006-06-16 18:31:54.528004500 +0200
@@ -19,7 +19,7 @@
 import time
 import string
 import types
-
+from time import localtime, strftime
 # portage (output module) and gentoolkit need special path modifications
 sys.path.insert(0, "/usr/lib/portage/pym")
 sys.path.insert(0, "/usr/lib/gentoolkit/pym")
@@ -1302,7 +1302,7 @@
                                if Config["piping"]:
                                        print_info(0, pkg.get_cpv())
                                else:
-                                       print_info(0, "[" + pp.installedflag(pf xmodes[status]) + "] [" + pp.maskflag(maskmodes[pkgmask]) + "] " + pp.cpv(pkg.g et_cpv()) + " (" + pp.slot(slot) + ")")
+                                       print_info(0, "[" + pp.installedflag(pf xmodes[status]) + "] [" + pp.maskflag(maskmodes[pkgmask]) + "] [ "+strftime("%c ",localtime(os.stat("/var/db/pkg/"+ pkg.get_cpv() + "/" +  pkg.get_cpv().split( '/',1)[1] + ".ebuild").st_mtime)) + " ]" + pp.cpv(pkg.get_cpv()) + " (" + pp.sl ot(slot) + ")")

        def _print_overlay(self, matches, rx):
                self._generic_print(
Comment 1 Wernfried Haas (RETIRED) gentoo-dev 2006-06-16 09:43:35 UTC
Wrong product, reassigning to portage development and making public.
Comment 2 José González Monlleó 2006-06-19 09:02:45 UTC
Created attachment 89540 [details, diff]
path for gentoolkit-0.2.2_pre4

with this patch equery show data of compilation and has a new global option:
 -t, --time-sort - sort by time
Comment 3 José González Monlleó 2006-06-23 00:48:11 UTC
Created attachment 89882 [details, diff]
new patch for version gentoolkit-0.2.2_pre4

this patch not failt when equery show packages that isn't installed.
Comment 4 Alex Xu (Hello71) 2015-06-11 00:35:03 UTC
if anything this should use BUILD_TIME now, and I think there's already a command for this.