diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2022-02-25 21:53:34 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2022-02-25 21:53:34 +0100 |
commit | ac75ed6a8a5ad70a587e5d9a2e085f80348ee610 (patch) | |
tree | aa8ca3da2ebff3761786718b1ec817e6f6190ace /debian/patches/0120-Disable_option_docs.patch | |
parent | 160d7ff755a943c63222abe1a860bc92d26c9673 (diff) | |
parent | bf97cbc41a39cd3b8bb0a3357683ef84e6b16c6a (diff) |
Merge branch 'release/debian/4.0.17-14'debian/4.0.17-14
Diffstat (limited to 'debian/patches/0120-Disable_option_docs.patch')
-rw-r--r-- | debian/patches/0120-Disable_option_docs.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/debian/patches/0120-Disable_option_docs.patch b/debian/patches/0120-Disable_option_docs.patch new file mode 100644 index 0000000..62060f9 --- /dev/null +++ b/debian/patches/0120-Disable_option_docs.patch @@ -0,0 +1,35 @@ +Description: Disable not available option docs +Author: Jörg Frings-Fürst <debian@jff.email> +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004417 +Forwarded: not-needed +Last-Update: 2022-02-24 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/foomaticrip.c +=================================================================== +--- trunk.orig/foomaticrip.c ++++ trunk/foomaticrip.c +@@ -330,8 +330,9 @@ void process_cmdline_options() + + /* "docs" option to print help page */ + if (!strcasecmp(key, "docs")) { +- do_docs = 1; +- continue; ++ do_docs = 0; ++ rip_die(EXIT_OPTION_NOT_AVAILABLE, "Option \"docs\" isn't available now.\n"); ++/* continue; */ + } + /* "profile" option to supply a color correction profile to a CUPS raster driver */ + if (!strcmp(key, "profile")) { +Index: trunk/foomaticrip.h +=================================================================== +--- trunk.orig/foomaticrip.h ++++ trunk/foomaticrip.h +@@ -62,6 +62,7 @@ + #define EXIT_PRNERR_NORETRY_BAD_SETTINGS 9 /* interface settings are invalid */ + #define EXIT_PRNERR_NO_SUCH_ADDRESS 10 /* address lookup failed, may be transient */ + #define EXIT_PRNERR_NORETRY_NO_SUCH_ADDRESS 11 /* address lookup failed, not transient */ ++#define EXIT_OPTION_NOT_AVAILABLE 20 /* Otion isn't avalable now */ + #define EXIT_INCAPABLE 50 /* printer wants (lacks) features or resources */ + + |