Overview

Request 3215 (accepted)

New release 0.9.0.3


pykolab.spec Changed
x
 
1
@@ -51,15 +51,17 @@
2
 %endif
3
 %endif
4
 
5
+%global upstream_version 0.9.0
6
+
7
 Summary:            Kolab Groupware Solution
8
 Name:               pykolab
9
-Version:            0.9.0
10
+Version: 0.9.0.3
11
 Release:            1%{?dist}
12
 License:            GPLv3+
13
 Group:              Applications/System
14
 URL:                http://kolab.org/
15
 
16
-Source0:            pykolab-%{version}.tar.gz
17
+Source0:            pykolab-%{upstream_version}.tar.gz
18
 Source1:            pykolab.logrotate
19
 
20
 BuildRoot:          %{_tmppath}/%{name}-%{version}-%{release}-root
21
@@ -248,7 +250,7 @@
22
 This is the Kolab Content Filter, with plugins
23
 
24
 %prep
25
-%setup -q
26
+%setup -q -n %{name}-%{upstream_version}
27
 
28
 %build
29
 autoreconf -v || automake --add-missing && autoreconf -v
30
debian.changelog Changed
7
 
1
@@ -1,4 +1,4 @@
2
-pykolab (0.9.0-0~kolab4) unstable; urgency=low
3
+pykolab (0.9.0.3-0~kolab4) unstable; urgency=low
4
 
5
   * Release of version 0.9.0
6
 
7
pykolab-0.9.0.tar.gz/pykolab/xml/contact.py Changed
11
 
1
@@ -14,6 +14,9 @@
2
     pass
3
 
4
 def contact_from_string(string):
5
+    if isinstance(string, bytes):
6
+        string = string.decode('utf-8')
7
+
8
     _xml = kolabformat.readContact(string, False)
9
     return Contact(_xml)
10
 
11
pykolab-0.9.0.tar.gz/pykolab/xml/event.py Changed
10
 
1
@@ -31,6 +31,8 @@
2
     return Event(from_ical=ical, from_string=string)
3
 
4
 def event_from_string(string):
5
+    if isinstance(string, bytes):
6
+        string = string.decode('utf-8')
7
     return Event(from_string=string)
8
 
9
 def event_from_message(message):
10
pykolab-0.9.0.tar.gz/pykolab/xml/note.py Changed
10
 
1
@@ -7,6 +7,8 @@
2
 from pykolab.xml.utils import ustr
3
 
4
 def note_from_string(string):
5
+    if isinstance(string, bytes):
6
+        string = string.decode('utf-8')
7
     _xml = kolabformat.readNote(string, False)
8
     return Note(_xml)
9
 
10
pykolab-0.9.0.tar.gz/pykolab/xml/todo.py Changed
10
 
1
@@ -19,6 +19,8 @@
2
     return Todo(from_ical=ical, from_string=string)
3
 
4
 def todo_from_string(string):
5
+    if isinstance(string, bytes):
6
+        string = string.decode('utf-8')
7
     return Todo(from_string=string)
8
 
9
 def todo_from_message(message):
10
pykolab-0.9.0.tar.gz/wallace/module_gpgencrypt.py Changed
9
 
1
@@ -21,7 +21,6 @@
2
 import tempfile
3
 import time
4
 
5
-from email import message_from_string
6
 from email.mime.base import MIMEBase
7
 from email.mime.text import MIMEText
8
 from email.parser import Parser
9
pykolab-0.9.0.tar.gz/wallace/module_invitationpolicy.py Changed
94
 
1
@@ -34,7 +34,7 @@
2
 import traceback
3
 import re
4
 
5
-from email import message_from_string
6
+from email import message_from_bytes
7
 from email.parser import Parser
8
 from email.utils import formataddr
9
 from email.utils import getaddresses
10
@@ -858,33 +858,25 @@
11
             if len(_ns for _ns in ns_shared if folder.startswith(_ns)) > 0:
12
                 continue
13
 
14
-        key = ('/shared' + FOLDER_TYPE_ANNOTATION).encode('utf-8')
15
-        if key in metadata:
16
-            if metadatakey.startswith(_type):
17
-                result.append(folder)
18
-
19
         key = ('/private' + FOLDER_TYPE_ANNOTATION).encode('utf-8')
20
-        if key in metadata:
21
-            if metadatakey.startswith(_type):
22
-                result.append(folder)
23
-
24
-            # store default folder in user record
25
+        if key in metadata and metadatakey.startswith(_type):
26
+            # store default,private and confidential folders in user record
27
             if metadatakey.endswith(b'.default'):
28
-                user_rec'_default_folder' = folder
29
-                continue
30
-
31
-            # store private and confidential folders in user record
32
-            if metadatakey.endswith(b'.confidential'):
33
+                if '_default_folder' not in user_rec:
34
+                    user_rec'_default_folder' = folder
35
+            elif metadatakey.endswith(b'.confidential'):
36
                 if '_confidential_folder' not in user_rec:
37
                     user_rec'_confidential_folder' = folder
38
-
39
-                continue
40
-
41
-            if metadatakey.endswith(b'.private'):
42
+            elif metadatakey.endswith(b'.private'):
43
                 if '_private_folder' not in user_rec:
44
                     user_rec'_private_folder' = folder
45
 
46
-                continue
47
+            result.append(folder)
48
+            continue
49
+
50
+        key = ('/shared' + FOLDER_TYPE_ANNOTATION).encode('utf-8')
51
+        if key in metadata and metadatakey.startswith(_type):
52
+            result.append(folder)
53
 
54
     # cache with user record
55
     user_rec'_imap_folders' = result
56
@@ -915,16 +907,16 @@
57
             res, data = imap.imap.m.fetch(num, '(UID RFC822)')
58
 
59
             try:
60
-                msguid = re.search(r"\WUID (\d+)", data00).group(1)
61
+                msguid = re.search(r"\WUID (\d+)", data00.decode('utf-8')).group(1)
62
             except Exception:
63
                 log.error(_("No UID found in IMAP response: %r") % (data00))
64
                 continue
65
 
66
             try:
67
                 if type == 'task':
68
-                    event = todo_from_message(message_from_string(data01))
69
+                    event = todo_from_message(message_from_bytes(data01))
70
                 else:
71
-                    event = event_from_message(message_from_string(data01))
72
+                    event = event_from_message(message_from_bytes(data01))
73
 
74
                 # find instance in a recurring series
75
                 if recurrence_id and (event.is_recurring() or event.has_exceptions() or event.get_recurrence_id()):
76
@@ -982,7 +974,7 @@
77
             res, data = imap.imap.m.fetch(num, '(RFC822)')
78
 
79
             try:
80
-                event = event_from_message(message_from_string(data01))
81
+                event = event_from_message(message_from_bytes(data01))
82
             except Exception as errmsg:
83
                 log.error(_("Failed to parse event from message %s/%s: %r") % (folder, num, errmsg))
84
                 continue
85
@@ -1056,7 +1048,7 @@
86
 
87
 
88
 def get_lock_key(user, uid):
89
-    return hashlib.md5("%s/%s" % (user'mail', uid)).hexdigest()
90
+    return hashlib.md5(("%s/%s" % (user'mail', uid)).encode('utf-8')).hexdigest()
91
 
92
 
93
 def update_object(object, user_rec, master=None):
94
pykolab-0.9.0.tar.gz/wallace/module_resources.py Changed
53
 
1
@@ -22,7 +22,7 @@
2
 import datetime
3
 import sys
4
 
5
-from email import message_from_string
6
+from email import message_from_bytes
7
 from email.parser import Parser
8
 from email.utils import formataddr
9
 from email.utils import getaddresses
10
@@ -665,7 +665,7 @@
11
         typ, data = imap.imap.m.fetch(num, '(RFC822)')
12
 
13
         try:
14
-            event = event_from_message(message_from_string(data01))
15
+            event = event_from_message(message_from_bytes(data01))
16
         # pylint: disable=broad-except
17
         except Exception as errmsg:
18
             log.error(_("Failed to parse event from message %s/%s: %r") % (mailbox, num, errmsg))
19
@@ -915,14 +915,14 @@
20
         typ, data = imap.imap.m.fetch(num, '(UID RFC822)')
21
 
22
         try:
23
-            msguid = re.search(r"\WUID (\d+)", data00).group(1)
24
+            msguid = re.search(r"\WUID (\d+)", data00.decode('utf-8')).group(1)
25
         # pylint: disable=broad-except
26
         except Exception:
27
             log.error(_("No UID found in IMAP response: %r") % (data00))
28
             continue
29
 
30
         try:
31
-            event = event_from_message(message_from_string(data01))
32
+            event = event_from_message(message_from_bytes(data01))
33
         # pylint: disable=broad-except
34
         except Exception as e:
35
             log.error(_("Failed to parse event from message %s/%s: %r") % (mailbox, num, e))
36
@@ -977,14 +977,14 @@
37
         typ, data = imap.imap.m.fetch(num, '(UID RFC822)')
38
 
39
         try:
40
-            msguid = re.search(r"\WUID (\d+)", data00).group(1)
41
+            msguid = re.search(r"\WUID (\d+)", data00.decode('utf-8')).group(1)
42
         # pylint: disable=broad-except
43
         except Exception:
44
             log.error(_("No UID found in IMAP response: %r") % (data00))
45
             continue
46
 
47
         try:
48
-            event = event_from_message(message_from_string(data01))
49
+            event = event_from_message(message_from_bytes(data01))
50
 
51
             # find instance in a recurring series
52
             if recurrence_id and (event.is_recurring() or event.has_exceptions()):
53
pykolab-0.9.0.tar.gz/wallace/modules.py Changed
9
 
1
@@ -24,7 +24,6 @@
2
 import sys
3
 import time
4
 
5
-from email import message_from_string
6
 from email.message import Message
7
 from email.mime.base import MIMEBase
8
 from email.mime.message import MIMEMessage
9
pykolab.dsc Changed
10
 
1
@@ -2,7 +2,7 @@
2
 Source: pykolab
3
 Binary: pykolab, kolab-cli, kolab-conf, kolab-saslauthd, kolab-server, kolab-telemetry, kolab-xml, wallace
4
 Architecture: all
5
-Version: 0.9.0-0~kolab4
6
+Version: 0.9.0.3-1~kolab1
7
 DEBTRANSFORM-RELEASE: 1
8
 Maintainer: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>
9
 Uploaders: Paul Klos <kolab@klos2day.nl>
10
release.sh Added
17
 
1
@@ -0,0 +1,15 @@
2
+#!/bin/bash
3
+
4
+./buildtarball.sh
5
+
6
+# Autobump the version
7
+CURRENT_VERSION=$(grep '^Version: ' ./*.spec | sed 's/Version: //') 
8
+NEW_VERSION=$(echo "$CURRENT_VERSION" | awk -F. '/0-9+\./{$NF++;print}' OFS=.)
9
+echo "Bumping from $CURRENT_VERSION to $NEW_VERSION"
10
+
11
+sed -i "s/$CURRENT_VERSION/$NEW_VERSION/" debian.changelog
12
+sed -i "s/^Version:.*/Version: $NEW_VERSION-1~kolab1/" ./*.dsc
13
+sed -i "s/^Version:.*/Version: $NEW_VERSION/" ./*.spec
14
+
15
+osc ci -m "New release $NEW_VERSION"
16
+osc sr Kolab:16 --yes -m "New release $NEW_VERSION"
17
Refresh
Refresh
Request History
mollekopf's avatar

mollekopf created request over 1 year ago

New release 0.9.0.3


mollekopf's avatar

mollekopf accepted request over 1 year ago