[gnome-schedule/freebsd] Use same group names as for Linux at regexp, be more specific, and remove debug



commit f1b4016bfa5749d228373a912c7f9cbab08e8044
Author: Gaute Hope <eg gaute vetsj com>
Date:   Tue Oct 11 22:58:33 2011 +0200

    Use same group names as for Linux at regexp, be more specific, and remove debug

 src/at.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/at.py b/src/at.py
index ef5fa73..547dc64 100644
--- a/src/at.py
+++ b/src/at.py
@@ -57,8 +57,7 @@ class At:
 
         # FreeBSD atq output, parser ignores time zone information
         if self.sysname == 'FreeBSD':
-          print "[AT] FreeBSD."
-          self.atRecordRegex = re.compile ('^(?P<dow>.{3})(?P<month>[\s].{3})[\s](?P<day>[0-9]+)[\s](?P<time>[0-2][0-9]:[0-5][0-9]:[0-5][0-9])[\s](?:(?P<tzone>.*)[\s]|)(?P<year>[0-9]{4})[\t]+(?P<owner>.+)[\s]+(?P<queue>[a-z]|[A-Z])[\t](?P<jobid>[0-9]*)$')
+          self.atRecordRegex = re.compile ('^(?P<dow>[\w]{3})[\s](?P<month>[\w]{3})[\s](?P<day>[0-9]+)[\s](?P<time>[0-2][0-9]:[0-5][0-9]:[0-5][0-9])[\s](?:(?P<tzone>.*)[\s]|)(?P<year>[0-9]{4})[\t]+(?P<user>.+)[\s]+(?P<class>[a-z]|[A-Z])[\t](?P<jobid>[0-9]*)$')
           # after you add a job, this line is printed to stderr
           # Job 5 will be executed using /bin/sh
           self.atRecordRegexAdd = re.compile('^Job[\s](?P<jobid>[0-9]+)[\s]will')
@@ -553,7 +552,7 @@ fi
 
                 #print _("added %(id)s") % { "id": job_id   }
             else:
-                print _("Warning: a line in atq's output didn't parse.")
+                print _("Warning: a line in atq's output didn't parse:")
                 print line
         return data
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]