Commit d9b535e5 authored by Guido Günther's avatar Guido Günther

Use python3-notify2

Closes: #870595
Thanks: Alexandre Detiste
parent ae7ed14e
......@@ -55,7 +55,7 @@ Depends: ${python3:Depends},
Recommends: pristine-tar (>= 0.5),
cowbuilder | pbuilder | sbuild,
Suggests: python3-notify, unzip, sudo
Suggests: python3-notify2, unzip, sudo
Description: Suite to help with Debian packages in Git repositories
This package contains the following tools:
* gbp import-{dsc,dscs}: import existing Debian source packages into a git
......@@ -27,12 +27,15 @@ def enable_notifications():
# Avoid GTK+ cannot open display warning:
import pynotify
notify_module = pynotify
import notify2
notify_module = notify2
except (ImportError, RuntimeError):
return False
return notify_module.init("git-buildpackage")
return notify_module.init("git-buildpackage")
except Exception:
return False
def build_msg(cp, success):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment