
On Wed, Feb 10, 2010 at 11:32 AM, Karl Eichwalder <ke@suse.de> wrote:
if len(path) < 3 or path[-3:] != '.po' or base == 'update-desktop-files' or not changed:
I guess this will not catch files such as:
update-desktop-files-apps.de.po update-desktop-files-conflicts.de.po update-desktop-files-directories.de.po update-desktop-files-kde-services.de.po update-desktop-files-kde.de.po update-desktop-files-screensavers.de.po update-desktop-files-yast.de.po
Here we go--Darix recommends to give re.match a try:
My suggestion is to change the comparision line to: [code] if len(path) < 3 or path[-3:] != '.po' or base.startswith('update-desktop-files') or not changed: [/code] strings methods are faster than regexp with single fixed strings. -- Kind Regards -- To unsubscribe, e-mail: opensuse-translation+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-translation+help@opensuse.org