commit:     3d16803ae4493193122100429f896be166cfcae9
Author:     Thomas Bracht Laumann Jespersen <t <AT> laumann <DOT> xyz>
AuthorDate: Thu Jan  1 23:45:21 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jan  2 23:58:59 2026 +0000
URL:        https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=3d16803a

eclean: use pkgdir variable over $PKGDIR

Signed-off-by: Thomas Bracht Laumann Jespersen <t <AT> laumann.xyz>
Part-of: https://codeberg.org/gentoo/gentoolkit/pulls/1
Merges: https://codeberg.org/gentoo/gentoolkit/pulls/1
Signed-off-by: Sam James <sam <AT> gentoo.org>

 pym/gentoolkit/eclean/clean.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pym/gentoolkit/eclean/clean.py b/pym/gentoolkit/eclean/clean.py
index 918d4dc..11cc755 100644
--- a/pym/gentoolkit/eclean/clean.py
+++ b/pym/gentoolkit/eclean/clean.py
@@ -65,7 +65,7 @@ class CleanUp:
 
         #  run 'emaint --fix' here
         if clean_size:
-            file = os.path.join(portage.settings["PKGDIR"], "Packages")
+            file = os.path.join(pkgdir, "Packages")
             size1 = os.stat(file).st_size
             TaskHandler(show_progress_bar=self.quiet).run_tasks(
                 [binhost.BinhostHandler], "fix"

Reply via email to