Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genlop --date doesn't work right
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
lekto
Apprentice
Apprentice


Joined: 20 Sep 2014
Posts: 217
Location: Ancient Rome

PostPosted: Tue Feb 11, 2025 6:03 pm    Post subject: genlop --date doesn't work right Reply with quote

Hi, recently I moved a system to a different machine, and genlop shows build times of the old machine, so I'm getting wrong genlop -p times. I want genlop to ignore times older than 2025. Genlop --help shows:
Code:
  --date datestring1 [--date datestring2] only shows results between
    datestring1 and datestring2.
    datestring2 defaults to "now" if not explicitly set.
    (e.g. genlop --list --date 3 days ago) shows packages emerged since this
    time three days ago.


But it doesn't work, I tried:
Code:
genlop --date 01/01/2025 -t mesa
genlop --date 2025/01/01 -t mesa
genlop --date 2025 -t mesa
genlop --date 1 january 2025 -t mesa
genlop --date "1 january 2025" -t mesa


But each time it includes results older than 2025. I also tried specifying the range, but it doesn't work at all:
Code:
genlop --date 1/1/2025 --date now -t mesa
too many --date arguments ?
Died at /usr/bin/genlop line 267.

Is this a bug, or am I missing something?
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2013

PostPosted: Tue Feb 11, 2025 6:43 pm    Post subject: Reply with quote

I can't speak for genlop, but perhaps it wants ISO8601 dates. I know qlop does:
Code:
qlop -d 2025-01-01


Edit:
Yes, it does work:
Code:
 $ genlop --date 2025-01-01 --list
 * packages merged:

     Wed Jan 29 14:47:52 2025 >>> sys-kernel/gentoo-sources-6.1.121


Last edited by grknight on Tue Feb 11, 2025 6:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6224
Location: Dallas area

PostPosted: Tue Feb 11, 2025 6:48 pm    Post subject: Re: genlop --date doesn't work right Reply with quote

lekto wrote:
But it doesn't work, I tried:
Code:
genlop --date 01/01/2025 -t mesa
genlop --date 2025/01/01 -t mesa
genlop --date 2025 -t mesa
genlop --date 1 january 2025 -t mesa
genlop --date "1 january 2025" -t mesa


double dates are used with -l (list IIRC)

This should work
genlop --date 01/01/2025 -t mesa
Code:
 $ genlop --date 01/01/2025 -t mesa
 * media-libs/mesa

     Sat Feb  8 05:45:24 2025 >>> media-libs/mesa-25.0.0_rc2
       merge time: 1 minute and 16 seconds.


I am using an older version, so don't know if it has changed
Code:
$ genlop -v
genlop 0.30.10


All the above relies on the system date being accurate.
_________________
UM780, 6.12 zen kernel, gcc 13, openrc, wayland
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum