Browse Source

add + sign to the package regex in voixicron

Helmut Pozimski 7 years ago
parent
commit
f9cb01868d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      voixicron.py

+ 2 - 2
voixicron.py

@@ -16,7 +16,7 @@ import sys
 from email.mime.multipart import MIMEMultipart
 from email.mime.text import MIMEText
 
-__version__ = "0.1"
+__version__ = "0.2"
 
 # Email server to be used to send the notification
 ADMIN_EMAIL = "root"
@@ -53,7 +53,7 @@ else:
         if "update" in line:
             try:
                 package = line.split(" ")[0]
-                package_regex = "^([A-Za-z0-9-._]*)-([0-9].*_[0-9]*)$"
+                package_regex = "^([A-Za-z0-9-._+]*)-([0-9].*_[0-9]*)$"
                 match_object = re.match(package_regex, package)
                 if match_object:
                     package_name = match_object.groups()[0]