diff options
author | Thomas Tuegel <ttuegel@gmail.com> | 2015-08-22 21:09:21 -0500 |
---|---|---|
committer | Thomas Tuegel <ttuegel@gmail.com> | 2015-12-06 11:49:51 -0600 |
commit | 63eb6fdd8a07731d747ca78e22fd65fc06228529 (patch) | |
tree | de9b77af0b4ca950beac670f468ab4ae2338cd1f /pkgs/build-support/fetchsvn | |
parent | 8498f9d46b52062a3ad9957a5d9188ea51e6ae2c (diff) | |
download | nixpkgs-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.nix | 2 |
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 |