File: ignore-js-dir-in-html-report-generation.patch

package info (click to toggle)
wapiti 3.2.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 16,412 kB
  • sloc: python: 29,683; php: 1,267; sql: 1,183; sh: 443; javascript: 207; xml: 139; ruby: 47; makefile: 38
file content (21 lines) | stat: -rw-r--r-- 725 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Peter Wienemann <fossdev@posteo.de>
Date: Fri, 7 Aug 2020 16:01:07 +0200
Subject: Ignore js dir in html report generation
Bug-Debian: https://bugs.debian.org/952720
Forwarded: not-needed

---
 wapitiCore/report/htmlreportgenerator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/wapitiCore/report/htmlreportgenerator.py
+++ b/wapitiCore/report/htmlreportgenerator.py
@@ -64,7 +64,7 @@
         (This way we keep previous generated HTML files).
         """
         if os.path.isdir(output_path):
-            for subdir in ("css", "js"):
+            for subdir in ["css"]:
                 try:
                     rmtree(os.path.join(output_path, subdir))
                 except FileNotFoundError: