[arch-projects] [namcap] [PATCH] Add py_mtime rule
This is a patch inspired by https://www.archlinux.org/todo/fix-bad-mtime-pycpyo-files-for-python-package... It checks packages with py/pyc/pyo files for time conflicts. When a py file is newer than a pyc/pyo python locks up a little while figuring out what to do. Sometime it is our fault for copying files in the wrong order or doing a sed after the pyc was generated. Sometimes it is upstream's fault; many setup.py scripts copy them in the wrong order. The test checks both the tar file and the mtree logs. If there is a time error in the tar file, it will affect every installation. If the error only appears in the mtree file, then the package will be fine but there is a chance that you won't get as lucky the next time the package is built. The tar case generates an error and the mtree case generates a warning. My apologies for including the patch as an attachment. I tried to send this with 'git send-email' but every time Mailmain said "Message rejected by filter rule match" -Kyle http://kmkeen.com
participants (1)
-
keenerd