Fix typo in search subcommand and related tests.
authorVasudev Kamath <vasudev@copyninja.info>
Sun, 29 Oct 2017 14:20:13 +0000 (19:50 +0530)
committerVasudev Kamath <vasudev@copyninja.info>
Sun, 29 Oct 2017 14:20:13 +0000 (19:50 +0530)
debian/patches/1002_fix_typo_cargo_search.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/1002_fix_typo_cargo_search.patch b/debian/patches/1002_fix_typo_cargo_search.patch
new file mode 100644 (file)
index 0000000..bf24ce3
--- /dev/null
@@ -0,0 +1,37 @@
+Description: Fix typo in cargo search subcommand.
+ Since the search subcommand where typo happened is
+ also used in test fix the typo in test also.
+Author: Vasudev Kamath <vasudev@copyninja.info>
+Last-Update: 2017-10-29
+
+--- cargo-0.22.0.orig/src/bin/search.rs
++++ cargo-0.22.0/src/bin/search.rs
+@@ -62,7 +62,7 @@ pub fn execute(options: Options, config:
+     let msg = "The flag '--host' is no longer valid.
+ Previous versions of Cargo accepted this flag, but it is being
+-depricated. The flag is being renamed to 'index', as the flag
++deprecated. The flag is being renamed to 'index', as the flag
+ wants the location of the index in which to search. Please
+ use '--index' instead.
+--- cargo-0.22.0.orig/tests/search.rs
++++ cargo-0.22.0/tests/search.rs
+@@ -140,7 +140,7 @@ fn simple_with_host() {
+ [WARNING] The flag '--host' is no longer valid.
+ Previous versions of Cargo accepted this flag, but it is being
+-depricated. The flag is being renamed to 'index', as the flag
++deprecated. The flag is being renamed to 'index', as the flag
+ wants the location of the index in which to search. Please
+ use '--index' instead.
+@@ -207,7 +207,7 @@ fn simple_with_index_and_host() {
+ [WARNING] The flag '--host' is no longer valid.
+ Previous versions of Cargo accepted this flag, but it is being
+-depricated. The flag is being renamed to 'index', as the flag
++deprecated. The flag is being renamed to 'index', as the flag
+ wants the location of the index in which to search. Please
+ use '--index' instead.
index b28424fb67a1e582d419c338f1c652d81807bc2c..3f1c2cfc19137e5c8050d94a9694be196c829c4d 100644 (file)
@@ -3,3 +3,4 @@
 2001_use-system-libgit2.patch
 2002_disable-net-tests.patch
 1001_fix_spelling_errors.patch
+1002_fix_typo_cargo_search.patch