[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#922526: remove_stale.pl not removing old html files



Package: www.debian.org
User: www.debian.org@packages.debian.org
Usertag: scripts
Severity: normal

Hello all
The files related to DLA that were in subfolders under /english/security
were recently moved to /english/lts/security. However, in
www-master.debian.org, the previous generated html files are still present.

I believe those html files should have been removed by remove_stale.pl
script which is run in the 8maintenance task in every often cron job:

https://salsa.debian.org/webmaster-team/webwml/blob/master/remove_stale.pl

However, the logs of that job say:

Initialising VCS cache
[...]
Recursing into `english'
[...]
0 stale translations found.

I have removed these old DLA html files except this one to serve as example:
https://www.debian.org/security/2019/dla-1624.en.html

I've checked if this issue is happening in other folders too and at
least found another example:

https://www.debian.org/users/com/dreamhost.*.html

(the wml files were removed in
https://salsa.debian.org/webmaster-team/webwml/commit/f0c0342f18cb291ba4f5c002d1470cb55ce65506
).


I have briefly looked at the code and couldn't spot the issue.
I don't know since when it is failing or if it's related to the CVS ->
git migration. I have checked old commits removing files and the html
files are not present, but cannot say if it was the script removing
them, or any of us removing them manually, as I just did now with most
of the DLA-related files.

I found this old commit removing a gif file:
https://salsa.debian.org/webmaster-team/webwml/commit/797edf0f23838ab36240038653157ccbcce10217

and the file is still present, but I guess the code of remove_stale.pl
currently only tries to handle html files, images.
(I have not manually removed this file, either).

Kind regards,
-- 
Laura Arjona Reina
https://wiki.debian.org/LauraArjona


Reply to: