Ignore:
Timestamp:
14 Jun 2012, 16:47:57 (12 years ago)
Author:
uli
Message:

Search only logfiles with correct basename, fix tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/datacenter.py

    r8634 r8725  
    224224        for name in os.listdir(os.path.join(self.storage, 'logs')):
    225225            if RE_LOGFILE_BACKUP_NAME.match(name):
    226                 files.append(name)
     226                if name.rsplit('.', 1)[0] == basename:
     227                    files.append(name)
    227228        return sorted(files, key=numerical_suffix, reverse=True)
    228229
Note: See TracChangeset for help on using the changeset viewer.