Add patch to fix spelling errors in cargo.
authorVasudev Kamath <vasudev@copyninja.info>
Sat, 23 Sep 2017 04:48:17 +0000 (10:18 +0530)
committerVasudev Kamath <vasudev@copyninja.info>
Sat, 23 Sep 2017 04:50:27 +0000 (10:20 +0530)
debian/patches/1001_fix_spelling_errors.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/1001_fix_spelling_errors.patch b/debian/patches/1001_fix_spelling_errors.patch
new file mode 100644 (file)
index 0000000..62ee7fc
--- /dev/null
@@ -0,0 +1,75 @@
+Description: Fix spelling errors in cargo messages.
+Author: Vasudev Kamath <vasudev@copyninja.info>
+Forwarded: no
+Last-Update: 2017-09-23
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/src/bin/search.rs
++++ b/src/bin/search.rs
+@@ -26,7 +26,7 @@
+ Options:
+     -h, --help               Print this message
+     --index INDEX            Registry index to search in
+-    --host HOST              DEPRICATED, renamed to '--index'
++    --host HOST              DEPRECATED, renamed to '--index'
+     -v, --verbose ...        Use verbose output (-vv very verbose/build.rs output)
+     -q, --quiet              No output printed to stdout
+     --color WHEN             Coloring: auto, always, never
+--- a/src/cargo/util/toml/mod.rs
++++ b/src/cargo/util/toml/mod.rs
+@@ -676,19 +676,19 @@
+             bail!("virtual manifests do not define [package]");
+         }
+         if me.lib.is_some() {
+-            bail!("virtual manifests do not specifiy [lib]");
++            bail!("virtual manifests do not specify [lib]");
+         }
+         if me.bin.is_some() {
+-            bail!("virtual manifests do not specifiy [[bin]]");
++            bail!("virtual manifests do not specify [[bin]]");
+         }
+         if me.example.is_some() {
+-            bail!("virtual manifests do not specifiy [[example]]");
++            bail!("virtual manifests do not specify [[example]]");
+         }
+         if me.test.is_some() {
+-            bail!("virtual manifests do not specifiy [[test]]");
++            bail!("virtual manifests do not specify [[test]]");
+         }
+         if me.bench.is_some() {
+-            bail!("virtual manifests do not specifiy [[bench]]");
++            bail!("virtual manifests do not specify [[bench]]");
+         }
+         let mut nested_paths = Vec::new();
+--- a/src/etc/man/cargo-pkgid.1
++++ b/src/etc/man/cargo-pkgid.1
+@@ -43,7 +43,7 @@
+ .RE
+ .SH EXAMPLES
+ .PP
+-Retrive package specification for foo package
++Retrieve package specification for foo package
+ .IP
+ .nf
+ \f[C]
+@@ -59,7 +59,7 @@
+ \f[]
+ .fi
+ .PP
+-Retrive package specification for foo from crates.io
++Retrieve package specification for foo from crates.io
+ .IP
+ .nf
+ \f[C]
+--- a/vendor/url-1.5.1/src/parser.rs
++++ b/vendor/url-1.5.1/src/parser.rs
+@@ -683,7 +683,7 @@
+                         self.syntax_violation("unencoded @ sign in username or password")
+                     } else {
+                         self.syntax_violation(
+-                            "embedding authentification information (username or password) \
++                            "embedding authentication information (username or password) \
+                             in an URL is not recommended")
+                     }
+                     last_at = Some((char_count, remaining.clone()))
index 1b6d8d213e978d1639e05c5827e7bbcfcd2d1c39..fe7ec6547c2e94d4071e1ba5c0a585c9f9d6ab11 100644 (file)
@@ -2,3 +2,4 @@ clean-cargo-deps.patch
 2003_local-jquery.patch
 2001_use-system-libgit2.patch
 2002_disable-net-tests.patch
+1001_fix_spelling_errors.patch