Unverified Commit 222b5302 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

reproducible debian: breakages: comment away the file cleanup code as I think...


reproducible debian: breakages: comment away the file cleanup code as I think it's removing too much

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent ae1bb04f
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -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]))