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
28
pkgs/shells/zsh/zsh-deer/realpath.patch
Normal file
28
pkgs/shells/zsh/zsh-deer/realpath.patch
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
From ceadb2f11119143af4f590ea6b05a531483219b5 Mon Sep 17 00:00:00 2001
|
||||
From: xd1le <elisp.vim@gmail.com>
|
||||
Date: Wed, 30 Aug 2017 17:27:20 +1000
|
||||
Subject: [PATCH] use realpath instead of python to calculate relative path
|
||||
|
||||
---
|
||||
deer | 5 +----
|
||||
1 file changed, 1 insertion(+), 4 deletions(-)
|
||||
|
||||
diff --git a/deer b/deer
|
||||
index 3d89dea..804a871 100644
|
||||
--- a/deer
|
||||
+++ b/deer
|
||||
@@ -259,10 +259,7 @@ deer-get-relative()
|
||||
{
|
||||
local TMP
|
||||
TMP=${1:-${DEER_DIRNAME%/}/$DEER_BASENAME[$DEER_DIRNAME]}
|
||||
- TMP="`python -c '
|
||||
-import sys, os
|
||||
-print(os.path.relpath(sys.argv[1], sys.argv[2]))
|
||||
-' $TMP ${DEER_STARTDIR:-$PWD}`"
|
||||
+ TMP="`realpath --relative-to=${DEER_STARTDIR:-$PWD} $TMP`"
|
||||
print -R $TMP:q
|
||||
}
|
||||
|
||||
--
|
||||
2.14.1
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue