From: Vasudev Kamath Date: Sun, 29 Oct 2017 14:20:13 +0000 (+0530) Subject: Fix typo in search subcommand and related tests. X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~130 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=807f96604ba256a4aa381ce8aa7112386c367626;p=cargo.git Fix typo in search subcommand and related tests. --- diff --git a/debian/patches/1002_fix_typo_cargo_search.patch b/debian/patches/1002_fix_typo_cargo_search.patch new file mode 100644 index 000000000..bf24ce369 --- /dev/null +++ b/debian/patches/1002_fix_typo_cargo_search.patch @@ -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 +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. + diff --git a/debian/patches/series b/debian/patches/series index b28424fb6..3f1c2cfc1 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -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