diff --git a/debian/changelog b/debian/changelog index 90b1203..08c35f8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,14 @@ lightdm-gtk-greeter-settings (1.2.2-4) UNRELEASED; urgency=medium + [ Debian Janitor ] * Set upstream metadata fields: Repository, Repository-Browse. - -- Debian Janitor Thu, 30 Apr 2020 00:39:59 +0000 + [ James Lu ] + * Add patch 0002-Fix-Python-syntax-warning-in-helpers.py-script.patch from + upstream commit https://github.com/Xubuntu/lightdm-gtk-greeter-settings/commit/c5ad9571dda90a3b4a5823ac7d4430d6a4cd5844 + Closes: #982373 + + -- James Lu Sat, 13 Feb 2021 12:53:52 -0800 lightdm-gtk-greeter-settings (1.2.2-3) unstable; urgency=medium diff --git a/debian/patches/0002-Fix-Python-syntax-warning-in-helpers.py-script.patch b/debian/patches/0002-Fix-Python-syntax-warning-in-helpers.py-script.patch new file mode 100644 index 0000000..12b9263 --- /dev/null +++ b/debian/patches/0002-Fix-Python-syntax-warning-in-helpers.py-script.patch @@ -0,0 +1,25 @@ +From: Sean Davis +Date: Tue, 16 Jun 2020 06:22:40 -0400 +Subject: Fix Python syntax warning in helpers.py script + +From: upstream; https://github.com/Xubuntu/lightdm-gtk-greeter-settings/commit/c5ad9571dda90a3b4a5823ac7d4430d6a4cd5844 +Forwarded: not-needed +Bug-Debian: https://bugs.debian.org/982373 +Bug: https://github.com/Xubuntu/lightdm-gtk-greeter-settings/issues/19 +--- + lightdm_gtk_greeter_settings/helpers.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lightdm_gtk_greeter_settings/helpers.py b/lightdm_gtk_greeter_settings/helpers.py +index a5b6fa7..53ba10d 100644 +--- a/lightdm_gtk_greeter_settings/helpers.py ++++ b/lightdm_gtk_greeter_settings/helpers.py +@@ -278,7 +278,7 @@ class SimpleEnumMeta(type): + obj._tuple_type = namedtuple(obj.__class__.__name__ + 'Tuple', obj._dict.keys()) + keys = list(obj._dict.keys()) + for i in range(len(keys)): +- if obj._dict[keys[i]] is (): ++ if obj._dict[keys[i]] == (): + v = 0 if i == 0 else obj._dict[keys[i - 1]] + 1 + setattr(obj, keys[i], v) + obj._dict[keys[i]] = v diff --git a/debian/patches/series b/debian/patches/series index c9dafd6..013baaf 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 0001-Refresh-translations.patch +0002-Fix-Python-syntax-warning-in-helpers.py-script.patch