﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35593	collectstatic does not preserve source file timestamps	Kaarle Ritvanen		"The `collectstatic` management command interacts badly with Linux package managers.

When `collectstatic` copies files, the ''last modified'' timestamp of the destination file gets set to the time when the command was run. If the destination file already exists and the corresponding source file does not have a newer timestamp, copying is skipped.

When files are installed by `pip`, the timestamps are set according to the installation time. However, this may not be the case with other package managers, such as `rpm` or `dpkg`. With native package mangers, the timestamps often reflect the build time of the package instead of the installation time. Therefore, `collectstatic` may skip source files that were actually updated by the package manager if the source package was built before the destination file was created.

To ensure correct operation, the destination directory must currently be emptied if any of the source files comes from the Linux distro. The suggested solution is to copy the timestamp of the source file to the destination file instead of using the current time."	Uncategorized	closed	contrib.staticfiles	4.2	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
