Projet

Général

Profil

0001-publisher-clean_nonces-delta-is-expressed-in-days-47.patch

Christophe Siraut, 29 septembre 2020 13:57

Télécharger (980 octets)

Voir les différences:

Subject: [PATCH] publisher/clean_nonces: delta is expressed in days (#47122)

 wcs/qommon/publisher.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/qommon/publisher.py
585 585
            for nonce in os.listdir(nonce_dir):
586 586
                nonce_path = os.path.join(nonce_dir, nonce)
587 587
                # we need delta so that os.utime in is_url_signed has time to update file timestamp
588
                if delta < now - os.stat(nonce_path)[8]:
588
                if delta < now - os.stat(nonce_path)[8] / (60 * 60 * 24):
589 589
                    os.unlink(nonce_path)
590 590
        finally:
591 591
            os.close(fd)
592
-