From aee319e2366af1a33c852f00a3f82c5c638bc246 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@lothar.com>
Date: Fri, 13 Feb 2009 00:00:22 -0700
Subject: [PATCH] figleaf_htmlizer: oops, re-ignore files that aren't under
 root, like code in auto-built eggs

---
 src/allmydata/util/figleaf_htmlizer.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/allmydata/util/figleaf_htmlizer.py b/src/allmydata/util/figleaf_htmlizer.py
index ac5946db..f12538d7 100644
--- a/src/allmydata/util/figleaf_htmlizer.py
+++ b/src/allmydata/util/figleaf_htmlizer.py
@@ -98,6 +98,8 @@ class Renderer:
                 continue
             if not k.startswith("/"):
                 continue
+            if root and not k.startswith(root):
+                continue
 
             display_filename = self.make_display_filename(k)
             info = self.process_file(k, display_filename, coverage)
-- 
2.45.2