From e843804092d9c44394907b663419d677dfec74fe Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Sat, 3 Sep 2016 11:17:07 +0200 Subject: [PATCH] bug fix for es cmsrep --- es_cmsrep_apache.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/es_cmsrep_apache.py b/es_cmsrep_apache.py index d2636de161b7..6e86a7c4296e 100755 --- a/es_cmsrep_apache.py +++ b/es_cmsrep_apache.py @@ -34,8 +34,9 @@ def process (line, count): if not send_payload("apache-cmsrep","access_log", id, dumps(payload), passwd_file="/data/es/es_secret"): return False items = payload["request"].replace("/cms/cpt/Software/download/","/cmssw/",1).split("/") + if len(items)<6: return True if items[3]=="apt": items[3]="PRMS" - if (len(items)<6) or (items[3] != "RPMS"): return True + if items[3] != "RPMS": return True pkg, cmspkg, arch, repo, dev = items[-1], "apt", "" , "", 0 if "?" in pkg: pkg, pkgopts = pkg.split("?",1)