Bug 557629 - The resulting lists are unsorted
Summary: The resulting lists are unsorted
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Set-Crontab
Version: 14
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2010-01-22 00:00 UTC by JW
Modified: 2011-10-11 08:28 UTC (History)
1 user (show)

Fixed In Version: perl-Set-Crontab-1.03-1.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2011-10-11 03:16:42 UTC
Type: ---

Attachments (Terms of Use)

Description JW 2010-01-22 00:00:19 UTC
Description of problem:
The resulting lists are unsorted

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. run cron_event_predict.plx (part of perl-Schedule-Cron-Events.tar from cpan) using a crontab with a line such as "30,20,10 * * * * whatever"

Actual results:
1. Prediction will be wrong

Expected results:
1. Should be correct (depends on your local time)

Additional info:
The problem is that Set::Crontab("30,20,10", [0..59])->list() is not sorted.  When dealing with such sets it really does make most sense to have the list sorted so that linear searches of the result are possible.  When dealing with crontabs there is never any sense in leaving the result in original order.

Comment 1 Miroslav Suchý 2010-01-22 12:10:43 UTC
Already reported to upstream in:

Comment 2 Bug Zapper 2010-11-04 00:17:00 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 

Comment 3 JW 2010-11-04 00:23:54 UTC
Still an issue with Fedora 14 (perl-Schedule-Cron-Events-1.8-20).

Comment 4 Fedora Update System 2011-10-02 11:23:37 UTC
perl-Set-Crontab-1.03-1.fc15 has been submitted as an update for Fedora 15.

Comment 5 Fedora Update System 2011-10-02 11:23:46 UTC
perl-Set-Crontab-1.03-1.fc16 has been submitted as an update for Fedora 16.

Comment 6 Fedora Update System 2011-10-02 11:23:53 UTC
perl-Set-Crontab-1.03-1.fc14 has been submitted as an update for Fedora 14.

Comment 7 Fedora Update System 2011-10-02 17:44:40 UTC
Package perl-Set-Crontab-1.03-1.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing perl-Set-Crontab-1.03-1.fc16'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2011-10-11 03:16:42 UTC
perl-Set-Crontab-1.03-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2011-10-11 08:26:30 UTC
perl-Set-Crontab-1.03-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2011-10-11 08:28:32 UTC
perl-Set-Crontab-1.03-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.