diff options
author | David Craven <david@craven.ch> | 2016-06-14 12:49:48 +0200 |
---|---|---|
committer | David Craven <david@craven.ch> | 2016-06-15 12:47:13 +0200 |
commit | 54f80775cb58b3aa784b323b1eddb14e45d86fc4 (patch) | |
tree | bce4bd898a59c13f8f7035c1612c27a6ad9b1578 /pkgs/development/compilers/rust/patches/remove-uneeded-git.patch | |
parent | d8a7aaf179cfad732720b996c76c55488b8d6d20 (diff) | |
download | nixlib-54f80775cb58b3aa784b323b1eddb14e45d86fc4.tar nixlib-54f80775cb58b3aa784b323b1eddb14e45d86fc4.tar.gz nixlib-54f80775cb58b3aa784b323b1eddb14e45d86fc4.tar.bz2 nixlib-54f80775cb58b3aa784b323b1eddb14e45d86fc4.tar.lz nixlib-54f80775cb58b3aa784b323b1eddb14e45d86fc4.tar.xz nixlib-54f80775cb58b3aa784b323b1eddb14e45d86fc4.tar.zst nixlib-54f80775cb58b3aa784b323b1eddb14e45d86fc4.zip |
rust: Refactoring of rust and cargo packages
Diffstat (limited to 'pkgs/development/compilers/rust/patches/remove-uneeded-git.patch')
-rw-r--r-- | pkgs/development/compilers/rust/patches/remove-uneeded-git.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/development/compilers/rust/patches/remove-uneeded-git.patch b/pkgs/development/compilers/rust/patches/remove-uneeded-git.patch new file mode 100644 index 000000000000..3c68d777f885 --- /dev/null +++ b/pkgs/development/compilers/rust/patches/remove-uneeded-git.patch @@ -0,0 +1,19 @@ +diff --git a/src/etc/tidy.py b/src/etc/tidy.py +index 9f5f919..a607180 100644 +--- a/src/etc/tidy.py ++++ b/src/etc/tidy.py +@@ -66,13 +66,9 @@ def interesting_file(f): + return any(os.path.splitext(f)[1] == ext for ext in interesting_files) + + +-# Be careful to support Python 2.4, 2.6, and 3.x here! +-config_proc = subprocess.Popen(["git", "config", "core.autocrlf"], +- stdout=subprocess.PIPE) +-result = config_proc.communicate()[0] + + true = "true".encode('utf8') +-autocrlf = result.strip() == true if result is not None else False ++autocrlf = False + + current_name = "" + current_contents = "" |