summary refs log tree commit diff
path: root/pkgs/build-support/fetchsvn
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@gmail.com>2015-08-22 21:09:21 -0500
committerThomas Tuegel <ttuegel@gmail.com>2015-12-06 11:49:51 -0600
commit63eb6fdd8a07731d747ca78e22fd65fc06228529 (patch)
treede9b77af0b4ca950beac670f468ab4ae2338cd1f /pkgs/build-support/fetchsvn
parent8498f9d46b52062a3ad9957a5d9188ea51e6ae2c (diff)
downloadnixpkgs-63eb6fdd8a07731d747ca78e22fd65fc06228529.tar
nixpkgs-63eb6fdd8a07731d747ca78e22fd65fc06228529.tar.gz
nixpkgs-63eb6fdd8a07731d747ca78e22fd65fc06228529.tar.bz2
nixpkgs-63eb6fdd8a07731d747ca78e22fd65fc06228529.tar.lz
nixpkgs-63eb6fdd8a07731d747ca78e22fd65fc06228529.tar.xz
nixpkgs-63eb6fdd8a07731d747ca78e22fd65fc06228529.tar.zst
nixpkgs-63eb6fdd8a07731d747ca78e22fd65fc06228529.zip
fetchsvn: correctly handle trailing slashes
`splitString` does not split on trailing separators.
Diffstat (limited to 'pkgs/build-support/fetchsvn')
-rw-r--r--pkgs/build-support/fetchsvn/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchsvn/default.nix b/pkgs/build-support/fetchsvn/default.nix
index 228a5eaa580..90dc13439a0 100644
--- a/pkgs/build-support/fetchsvn/default.nix
+++ b/pkgs/build-support/fetchsvn/default.nix
@@ -8,7 +8,7 @@ let
       snd = l: head (tail l);
       trd = l: head (tail (tail l));
       path_ = reverseList (splitString "/" url);
-      path = if head path_ == "" then tail path_ else path_;
+      path = [ (removeSuffix "/" (head path_)) ] ++ (tail path_);
     in
       # ../repo/trunk -> repo
       if fst path == "trunk" then snd path