Bug 56012

Summary: minor y2k bug
Product: [Retired] Red Hat Powertools Reporter: Ion Badulescu <ionut>
Component: mirrorAssignee: bero
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 7.1CC: selsky
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-01-17 15:51:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
fix for mirror.pl
none
fix for dateconv.pl none

Description Ion Badulescu 2001-11-10 17:58:11 UTC
Description of Problem:
in the emails it sends after mirroring a package, mirror says something like:

Mirrored redhat-5.2-updates (updates.redhat.com:/5.2/en/os -> /misc/mirror/os/linux/redhat/updates/5.2) RedHat 5.2 updates @  8 Nov 101 10:28

Notice year 101... :-) Oh well, another standard perl script bug...

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


How Reproducible:
always

Steps to Reproduce:
1.  mirror a package
2.  read email
3. 

Actual Results:


Expected Results:


Additional Information:
to fix: edit /usr/lib/mirror/dateconv.pl, go to second line from the bottom, replace
      return sprintf( "%2d $months[ $mon + 1 ] %2d %02d:%02d", $mday, $year, $hour, $min );
with
      return sprintf( "%2d $months[ $mon + 1 ] %4d %02d:%02d", $mday, $year + 1900, $hour, $min );

Comment 1 Matt Selsky 2001-11-13 18:27:52 UTC
There is some other small changes necessary.  I tried mailing
mirror-people.ac.uk (the devel list for mirror.pl) but the list
doesn't seem to be working.

Comment 2 Matt Selsky 2001-11-13 18:28:52 UTC
Created attachment 37422 [details]
fix for mirror.pl

Comment 3 Matt Selsky 2001-11-13 18:30:02 UTC
Created attachment 37423 [details]
fix for dateconv.pl

Comment 4 Bernhard Rosenkraenzer 2002-01-18 17:10:10 UTC
Since powertools has been discontinued, the official fix is the removal of the
package (sorry).