Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80618 - off by one error in genlop --date
Summary: off by one error in genlop --date
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: x86 Linux
: High trivial
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-03 12:21 UTC by Karl Steddom
Modified: 2005-09-22 07:57 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Steddom 2005-02-03 12:21:36 UTC
the date option of genlop misses a emerge if it started at the same time as the date request, see output below.


Reproducible: Always
Steps to Reproduce:
1.genlop -l
2.find an emerge that started on the minute (ie. 12:53:00)
3.genlop -l --date 12:53:00 today, starts from the emerge after this one.

Actual Results:  
karl@k-steddom2-XP-175 karl $ genlop -l --date 12:53 today
 * sys-libs/gpm

     Thu Feb  3 12:54:01 2005 >>> sys-libs/gpm-1.20.1
     Thu Feb  3 12:54:23 2005 >>> sys-devel/gnuconfig-20040214
...clip output... 
karl@k-steddom2-XP-175 karl $ genlop -l --date 12:52 today
 * sys-devel/patch

     Thu Feb  3 12:53:00 2005 >>> sys-devel/patch-2.5.9
     Thu Feb  3 12:54:01 2005 >>> sys-libs/gpm-1.20.1
     Thu Feb  3 12:54:23 2005 >>> sys-devel/gnuconfig-20040214
If I try this again with 12:54, gpm is listed first, so 12:54:01 seems to be ok.
trying this again with "genlop -l --date 12:52:00 today" gives the same error.
Also trying this with other emerges that started on the minute gives the same
result.

Expected Results:  
should print out emerges equal to or greater than the listed time.

genlop version 0.30.2
Comment 1 Karl Steddom 2005-02-03 12:23:45 UTC
opps
"genlop -l --date 12:52:00 today"
should have been 
"genlop -l --date 12:53:00 today"
sorry
Comment 2 Antonio Dolcetta 2005-07-28 07:54:30 UTC
fixed in next version
thank you
Comment 3 Jan Kundrát (RETIRED) gentoo-dev 2005-09-10 07:45:41 UTC
slon ~ # genlop --version 
genlop 0.30.3 Copyright 2004 Giorgio Mandolfo. 
Distribuited under the GPL v2. See COPYING for details 
slon ~ # date 
Sat Sep 10 16:30:40 CEST 2005 
slon ~ # genlop -l --date today 
slon ~ # genlop -l --date yesterday 
 * dev-lang/python 
 
     Sat Sep 10 01:48:04 2005 >>> dev-lang/python-2.3.5-r2 
     Sat Sep 10 15:00:38 2005 >>> app-admin/logrotate-3.7.1-r1 
     Sat Sep 10 15:00:55 2005 >>> sys-power/hibernate-script-1.10-r1 
     Sat Sep 10 15:01:14 2005 >>> sys-apps/suspend2-userui-0.6.1 
     Sat Sep 10 15:06:07 2005 >>> sys-kernel/suspend2-sources-2.6.13-r2 
Comment 4 Antonio Dolcetta 2005-09-22 05:39:23 UTC
yeah, you should upgrade:
antonio@simbad ~ $ emerge -p genlop

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] app-portage/genlop-0.30.5  
Comment 5 Paul Varner (RETIRED) gentoo-dev 2005-09-22 07:57:11 UTC
Fixed in genlop-0.30.5