From fb1cdd61b6903ea8937c6c8572806af46465337e Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Thu, 18 Apr 2013 22:20:19 +0800 Subject: [PATCH] more generous version matching --- repomon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repomon.py b/repomon.py index 9a7cae8..27e1825 100755 --- a/repomon.py +++ b/repomon.py @@ -26,7 +26,7 @@ import dbutil logger = logging.getLogger(__name__) # handles only x86_64, i686 and any arch packages -_pkgfile_pat = re.compile(r'(?:^|/)[a-z0-9_-]+-[A-Za-z0-9_.]+-\d+-(?:x86_64|i686|any)\.pkg\.tar\.xz(?:\.sig)?$') +_pkgfile_pat = re.compile(r'(?:^|/)[a-z0-9_-]+-[^-]+-\d+-(?:x86_64|i686|any)\.pkg\.tar\.xz(?:\.sig)?$') class ActionInfo(archpkg.PkgNameInfo): def __new__(cls, path, action, four=None, five=None, pkgpath=None):