Changeset 6939


Ignore:
Timestamp:
Feb 28, 2018, 6:07:42 PM (18 months ago)
Author:
mabarracus
Message:

Fix local executable filter

Location:
lliurex-statistics/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-statistics/trunk/fuentes/debian/changelog

    r6935 r6939  
     1lliurex-statistics (0.5.2.2) xenial; urgency=medium
     2
     3  * Fix local executable filter
     4
     5 -- M.Angel Juan <m.angel.juan@gmail.com>  Wed, 28 Feb 2018 18:07:11 +0100
     6
    17lliurex-statistics (0.5.2.1) xenial; urgency=medium
    28
  • lliurex-statistics/trunk/fuentes/lliurex-statistics.install/usr/sbin/analytics

    r6935 r6939  
    255255    for i in range(len(parts_item)):
    256256        executable = parts_item[i].strip()
     257        if '/' in executable:
     258            executable = executable.split('/')[-1]
     259            log.debug('Trimming executable to {}'.format(executable))
    257260        if not re.match(regexp,executable):
    258261            log.debug('Skipping malformed executable {}'.format(executable))
    259262            executable = None
    260263            continue
    261         if '/' in executable:
    262             executable = executable.split('/')[-1]
    263             log.debug('Trimming executable to {}'.format(executable))
    264264        if executable in glob['INTERPRETERS']:
    265265            log.debug('Trimming interpreter part {}'.format(executable))
Note: See TracChangeset for help on using the changeset viewer.