File: enum34.patch

package info (click to toggle)
laditools 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 684 kB
  • ctags: 445
  • sloc: python: 2,478; sh: 34; makefile: 5
file content (38 lines) | stat: -rw-r--r-- 1,612 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Description: Port laditools from python-enum to python-enum34
 Python-enum and python-enum34 cannot co-exist and it is planned to
 remove python-enum from Debian soon.
 Python-enum34 is a backport of the enum now included within Python 3. 
Author: Ross Gammon <rossgammon@mail.dk>
Bug: https://bugs.launchpad.net/ubuntu/+source/laditools/+bug/1498345
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=800805
Forwarded: https://github.com/alessio/laditools/pull/1
Applied-Upstream: Not Yet
Last-Update: 2016-03-09
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- laditools-1.1.0.orig/laditools/ladish.py
+++ laditools-1.1.0/laditools/ladish.py
@@ -28,10 +28,8 @@
 studio_obj_path = "/org/ladish/Studio"
 service_name = name_base
 
-LadishStatusType = Enum("STUDIO_STOPPED",
-                        "NOT_AVAILABLE",
-                        "NO_STUDIO_LOADED",
-                        "STUDIO_RUNNING")
+LadishStatusType = Enum("LadishStatusType",
+                        "STUDIO_STOPPED NOT_AVAILABLE NO_STUDIO_LOADED STUDIO_RUNNING")
 
 class LadishProxyError(Exception): pass
 class LadishStudioException(Exception): pass
--- laditools-1.1.0.orig/INSTALL
+++ laditools-1.1.0/INSTALL
@@ -29,7 +29,7 @@
 Plus, the following dependencies must be satisfied:
 
  - GTK+3            (>= 3.2.2,  http://www.gtk.org/)
- - python-enum      (>= 0.4.4,  http://pypi.python.org/pypi/enum/)
+ - python-enum34    (>= 1.1.2,  https://pypi.python.org/pypi/enum34/)
  - VTE              (>= 0.30.1, http://ftp.gnome.org/pub/GNOME/sources/vte/)
 
 Here is a list of optional dependencies: