Skip to content

Commit

Permalink
bug fix for es cmsrep
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Sep 3, 2016
1 parent 07f73c4 commit e843804
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion es_cmsrep_apache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e843804

Please sign in to comment.