From aa9a51fbada6f452118b5c5a07fbdfe8ddfeb5fc Mon Sep 17 00:00:00 2001
From: Spyridon Argyropoulos <spyridon.argyropoulos@cern.ch>
Date: Tue, 20 Oct 2020 13:28:04 +0200
Subject: [PATCH] Add pdgid_extras.txt to whitelist

---
 scripts/whitelist.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/whitelist.sh b/scripts/whitelist.sh
index ec1ac7ae63..f695b2cfe9 100644
--- a/scripts/whitelist.sh
+++ b/scripts/whitelist.sh
@@ -18,7 +18,9 @@ checkWhiteList() {
        # Regular file checks
         if [[ ($path =~ $DIR/.*\.py) ||
               ($path =~ $DIR/.*\.f) ||
+              # dat files have to live in the top-level jO directory
               (($path =~ $DIR/.*\.dat) && !(($top2Dirs =~ [0-9]{3}xxx/[0-9]{6} && $path =~ [0-9]{3}xxx/[0-9]{6}/.*/.*\.dat) || ( !($top2Dirs =~ [0-9]{3}xxx/[0-9]{6}) && $path =~ $DIR/.*/.*\.dat))) ||
+              ($path =~ $DIR/pdgid_extras.txt) ||
               ($path =~ $DIR/powheg.input) ||
               ($path =~ $DIR/log\.generate\.short) ||
               ($path =~ $DIR/MadGraphControl/.*\.py) ||
@@ -35,7 +37,9 @@ checkWhiteList() {
         if [[ ($path =~ $DIR/mc_.*TeV\..*\.GRID\.tar\.gz) ||
               ($path =~ $DIR/.*\.py) ||
               ($path =~ $DIR/.*\.f) ||
+              # dat files have to live in the top-level jO directory
               (($path =~ $DIR/.*\.dat) && !(($top2Dirs =~ [0-9]{3}xxx/[0-9]{6} && $path =~ [0-9]{3}xxx/[0-9]{6}/.*/.*\.dat) || ( !($top2Dirs =~ [0-9]{3}xxx/[0-9]{6}) && $path =~ $DIR/.*/.*\.dat))) ||
+              ($path =~ $DIR/pdgid_extras.txt) ||
               ($path =~ $DIR/powheg.input) ||
               ($path =~ $DIR/MadGraphControl/.*\.py) ||
               ($path =~ $DIR/PowhegControl/.*\.py) ||
-- 
GitLab