uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
54
pkgs/development/python-modules/notify-py/linux-paths.patch
Normal file
54
pkgs/development/python-modules/notify-py/linux-paths.patch
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
diff --git a/notifypy/os_notifiers/linux.py b/notifypy/os_notifiers/linux.py
|
||||
index ee89216..5201574 100644
|
||||
--- a/notifypy/os_notifiers/linux.py
|
||||
+++ b/notifypy/os_notifiers/linux.py
|
||||
@@ -53,30 +53,12 @@ class LinuxNotifierLibNotify(BaseNotifier):
|
||||
@staticmethod
|
||||
def _find_installed_aplay():
|
||||
"""Function to find the path for notify-send"""
|
||||
- try:
|
||||
- run_which_for_aplay = subprocess.check_output(["which", "aplay"])
|
||||
- return run_which_for_aplay.decode("utf-8")
|
||||
- except subprocess.CalledProcessError:
|
||||
- logger.exception("Unable to find aplay.")
|
||||
- return False
|
||||
- except Exception:
|
||||
- logger.exception("Unhandled exception for finding aplay.")
|
||||
- return False
|
||||
+ return "@aplay@"
|
||||
|
||||
@staticmethod
|
||||
def _find_installed_notify_send():
|
||||
"""Function to find the path for notify-send"""
|
||||
- try:
|
||||
- run_which_for_notify_send = subprocess.check_output(
|
||||
- ["which", "notify-send"]
|
||||
- )
|
||||
- return run_which_for_notify_send.decode("utf-8")
|
||||
- except subprocess.CalledProcessError:
|
||||
- logger.exception("Unable to find notify-send.")
|
||||
- return False
|
||||
- except Exception:
|
||||
- logger.exception("Unhandled exception for finding notify-send.")
|
||||
- return False
|
||||
+ return "@notifysend@"
|
||||
|
||||
def send_notification(
|
||||
self,
|
||||
@@ -159,15 +141,7 @@ class LinuxNotifier(BaseNotifier):
|
||||
@staticmethod
|
||||
def _find_installed_aplay():
|
||||
"""Function to find the path for notify-send"""
|
||||
- try:
|
||||
- run_which_for_aplay = subprocess.check_output(["which", "aplay"])
|
||||
- return run_which_for_aplay.decode("utf-8")
|
||||
- except subprocess.CalledProcessError:
|
||||
- logger.exception("Unable to find aplay.")
|
||||
- return False
|
||||
- except Exception:
|
||||
- logger.exception("Unhandled exception for finding aplay.")
|
||||
- return False
|
||||
+ return "@aplay@"
|
||||
|
||||
def send_notification(
|
||||
self,
|
||||
Loading…
Add table
Add a link
Reference in a new issue