[Git][qa/jenkins.debian.net][master] reproducible debian: breakages: comment away the file cleanup code as I think...

Mattia Rizzolo (@mattia) gitlab at salsa.debian.org
Wed Nov 8 16:05:25 GMT 2023



Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net


Commits:
222b5302 by Mattia Rizzolo at 2023-11-08T18:04:39+02:00
reproducible debian: breakages: comment away the file cleanup code as I think it's removing too much

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


1 changed file:

- bin/reproducible_html_breakages.py


Changes:

=====================================
bin/reproducible_html_breakages.py
=====================================
@@ -181,8 +181,10 @@ def alien_log(directory=None):
             if strip_epoch(rversion) != version:
                 try:
                     if os.path.getmtime('/'.join([root, file])) < time.time()-86400:
-                        os.remove('/'.join([root, file]))
-                        log.warning('%s should not be there and was older than a day so it was removed',
+                        #os.remove('/'.join([root, file]))
+                        #log.warning('%s should not be there and was older than a day so it was removed',
+                        bad_files.append('/'.join([root, file]))
+                        log.warning('%s should not be there but was not removed',
                                     '/'.join([root, file]))
                     else:
                         bad_files.append('/'.join([root, file]))
@@ -225,8 +227,10 @@ def alien_buildinfo():
             if strip_epoch(rversion) != version:
                 try:
                     if os.path.getmtime('/'.join([root, file])) < time.time()-86400:
-                        os.remove('/'.join([root, file]))
-                        log.warning('%s should not be there and and was older than a day so it was removed.',
+                        #os.remove('/'.join([root, file]))
+                        #log.warning('%s should not be there and and was older than a day so it was removed.',
+                        bad_files.append('/'.join([root, file]))
+                        log.warning('%s should not be there, but was not removed',
                                     '/'.join([root, file]))
                     else:
                         bad_files.append('/'.join([root, file]))



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/222b5302e884a5b5dd35d9776d5dd53740494e21

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/222b5302e884a5b5dd35d9776d5dd53740494e21
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20231108/e9517c33/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list