commit:     85746654ac4a284323d36cf8d8d3ce4dc5c08abf
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 31 06:35:29 2023 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Aug 31 06:35:29 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=85746654

scripts/auto-bootstraps/update_distfiles: skip portage-latest.tar.*

Bit of a kludge, but avoid portage-latest.tar.* to be made public, so as
not to serve an outdated copy.

Bug: https://bugs.gentoo.org/913349
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 scripts/auto-bootstraps/update_distfiles.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/auto-bootstraps/update_distfiles.py 
b/scripts/auto-bootstraps/update_distfiles.py
index 76d3da64df..c8578a075d 100755
--- a/scripts/auto-bootstraps/update_distfiles.py
+++ b/scripts/auto-bootstraps/update_distfiles.py
@@ -18,6 +18,9 @@ for path in sys.argv[1:]:
         for f in it:
             if not f.is_file() or f.name.startswith('.'):
                 continue
+            # ensure this live snapshot never ends up in a mirror
+            if (f.name.startswith('portage-latest.tar.'):
+                continue
             srcfile = os.path.join(path, f.name)
             h = hash_file(srcfile)
             distname = os.path.join(distfilessrc,

Reply via email to