[spambayes-dev] test_storage.py failing

Skip Montanaro skip at pobox.com
Mon Dec 29 17:55:23 EST 2003


    >> Sorry for the false alarm.  I wonder if I should file a bug report
    >> against distutils...

    Mark> I have seen similar things with distutils.  If the 'installed'
    Mark> file has a later date than the file being installed, distutils
    Mark> decides not to install it.

I think cvs exacerbates the problem by setting the mod time of checked out
files to the last checkin date.  Here's a listing of the Outlook2000 in my
~/tmp/spambayes directory:

    % ls -ltr Outlook2000/
    total 284
    -rw-rw-r--    1 skip     staff        4102 Oct  3 00:23 README.txt
    -rw-rw-r--    1 skip     staff        1779 Dec 14 05:23 default_bayes_customize.ini
    -rw-rw-r--    1 skip     staff        7199 Dec 15 23:06 train.py
    -rw-rw-r--    1 skip     staff        3539 Dec 15 23:06 oastats.py
    -rw-rw-r--    1 skip     staff        6205 Dec 15 23:06 config_wizard.py
    -rw-rw-r--    1 skip     staff       57355 Dec 19 00:25 msgstore.py
    -rw-rw-r--    1 skip     staff        7105 Dec 19 00:27 filter.py
    -rw-rw-r--    1 skip     staff       39497 Dec 20 05:21 manager.py
    -rw-rw-r--    1 skip     staff       18414 Dec 21 21:13 config.py
    -rw-rw-r--    1 skip     staff       73521 Dec 21 21:16 addin.py
    -rw-rw-r--    1 skip     staff        7407 Dec 21 21:17 about.html
    drwxrwxr-x   15 skip     staff         510 Dec 23 22:00 dialogs
    drwxrwxr-x    7 skip     staff         238 Dec 23 22:00 docs
    drwxrwxr-x   11 skip     staff         374 Dec 23 22:00 sandbox
    drwxrwxr-x   10 skip     staff         340 Dec 23 22:00 installer
    drwxrwxr-x    6 skip     staff         204 Dec 23 22:00 images
    -rw-rw-r--    1 skip     staff       29666 Dec 23 22:06 tester.py
    -rw-r--r--    1 skip     staff        8209 Dec 29 15:58 export.py
    drwxrwxr-x    5 skip     staff         170 Dec 29 15:58 CVS

Note that I created the entire tree just a few days before Christmas, yet
the README.txt file has a timestamp of October 3rd.

    Mark> I went so far as stepping through distutils in a debugger before I
    Mark> saw that was the intent of the code.  I agree it sucks, but it
    Mark> doesn't appear to be a bug.

Maybe there's a flag in cvs which will set the timestamp appropriately.
Alternatively, I suppose a 'find . -type f | xargs touch' would work for us
Unix geeks.  Still, it's surprising.

(Best thing would be to install if the source and destination files have
different checksums.)

Skip




More information about the spambayes-dev mailing list