public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/pkgcore/pkgcheck:master commit in: src/pkgcheck/addons/
Date: Thu, 19 Jan 2023 20:57:39 +0000 (UTC)	[thread overview]
Message-ID: <1674161668.0e22d6f56b735b5b7449e5e3f800685bb54651d4.arthurzam@gentoo> (raw)

commit:     0e22d6f56b735b5b7449e5e3f800685bb54651d4
Author:     Daniel M. Weeks <dan <AT> danweeks <DOT> net>
AuthorDate: Thu Jan 19 17:12:06 2023 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Jan 19 20:54:28 2023 +0000
URL:        https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=0e22d6f5

Use REPO profile base for profile caching

Prior to this change, scanning an overlay would always cause a profile
cache update since nothing repo-specific was actually getting updated.

Signed-off-by: Daniel M. Weeks <dan <AT> danweeks.net>
Closes: https://github.com/pkgcore/pkgcheck/pull/528
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 src/pkgcheck/addons/profiles.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/pkgcheck/addons/profiles.py b/src/pkgcheck/addons/profiles.py
index 799cd94a..f9a6862e 100644
--- a/src/pkgcheck/addons/profiles.py
+++ b/src/pkgcheck/addons/profiles.py
@@ -267,7 +267,9 @@ class ProfileAddon(caches.CachedAddon):
                     for profile_obj, profile in self.arch_profiles.get(arch, []):
                         files = self.profile_data.get(profile)
                         try:
-                            cached_profile = cached_profiles[profile.base][profile.path]
+                            cached_profile = cached_profiles[repo.config.profiles_base][
+                                profile.path
+                            ]
                             if files != cached_profile["files"]:
                                 # force refresh of outdated cache entry
                                 raise KeyError
@@ -329,8 +331,8 @@ class ProfileAddon(caches.CachedAddon):
                                 # unsupported EAPI or other issue, profile checks will catch this
                                 continue
 
-                            cached_profiles[profile.base]["update"] = True
-                            cached_profiles[profile.base][profile.path] = {
+                            cached_profiles[repo.config.profiles_base]["update"] = True
+                            cached_profiles[repo.config.profiles_base][profile.path] = {
                                 "files": files,
                                 "masks": masks,
                                 "unmasks": unmasks,


             reply	other threads:[~2023-01-19 20:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-19 20:57 Arthur Zamarin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-01-24 19:22 [gentoo-commits] proj/pkgcore/pkgcheck:master commit in: src/pkgcheck/addons/ Arthur Zamarin
2023-09-08 12:20 Arthur Zamarin
2023-10-03 18:28 Arthur Zamarin
2024-02-09 18:46 Arthur Zamarin
2024-02-16 20:44 Arthur Zamarin
2024-03-01 19:19 Arthur Zamarin
2025-02-07 19:26 Arthur Zamarin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1674161668.0e22d6f56b735b5b7449e5e3f800685bb54651d4.arthurzam@gentoo \
    --to=arthurzam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox