[gnome-schedule] Revert "Support FreeBSD output after adding task"
- From: Gaute Hope <gauteh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-schedule] Revert "Support FreeBSD output after adding task"
- Date: Tue, 4 Oct 2011 14:57:38 +0000 (UTC)
commit 591b074d1f58c7a11370295f006f6203ee767ab2
Author: Gaute Hope <eg gaute vetsj com>
Date: Tue Oct 4 15:11:42 2011 +0200
Revert "Support FreeBSD output after adding task"
This reverts commit f75e94242abf41d8c8afb725e70c32f5012bbdc3.
src/at.py | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/at.py b/src/at.py
index 27d3d24..2e0d8dc 100644
--- a/src/at.py
+++ b/src/at.py
@@ -58,16 +58,17 @@ class At:
# FreeBSD atq output, parser ignores time zone information
if self.sysname == '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})\s*(?P<owner>.+)\s*(?P<queue>[a-z]|[A-Z])\s*(?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]+)\swill')
# General Linux atq output
else:
self.atRecordRegex = re.compile('^(?P<jobid>[\d]+)[\t](?P<dow>[\w]{3,3})[\s](?P<month>[\w]{3,3})[\s]*(?P<day>[\d]+)[\s](?P<time>[\d]{2,2}[:][\d]{2,2}[:][\d]{2,2})[\s](?P<year>[\d]{4,4})[\s](?P<class>[\w])[\s](?P<user>[\w]+)')
- # after you add a job, this line is printed to stderr
- # job 10 at 2006-09-18 12:38
- self.atRecordRegexAdd = re.compile('^job\s(?P<jobid>[0-9]+)\sat')
+
+
+
+
+ # after you add a job, this line is printed to stderr
+ # job 10 at 2006-09-18 12:38
+ self.atRecordRegexAdd = re.compile('^job\s(?P<jobid>[0-9]+)\sat')
self.SCRIPT_DELIMITER = "###### ---- GNOME_SCHEDULE_SCRIPT_DELIMITER #####"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]