From 1beccaff30f44368fc1e039b70ab37dc96b8ada7 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Mon, 29 Aug 2011 04:13:44 +0400 Subject: Do not print any messages if missing parts --- debian/patches/debian-pkg-hint.patch | 22 ---------------------- debian/patches/no-missing-messages.patch | 21 +++++++++++++++++++++ debian/patches/series | 2 +- 3 files changed, 22 insertions(+), 23 deletions(-) delete mode 100644 debian/patches/debian-pkg-hint.patch create mode 100644 debian/patches/no-missing-messages.patch diff --git a/debian/patches/debian-pkg-hint.patch b/debian/patches/debian-pkg-hint.patch deleted file mode 100644 index 8814424..0000000 --- a/debian/patches/debian-pkg-hint.patch +++ /dev/null @@ -1,22 +0,0 @@ -Index: open-axiom.trunk/src/sman/sman.c -=================================================================== ---- open-axiom.trunk.orig/src/sman/sman.c 2011-08-19 19:31:51.000000000 +0400 -+++ open-axiom.trunk/src/sman/sman.c 2011-08-19 19:34:40.000000000 +0400 -@@ -450,7 +450,7 @@ - const char* command = oa_concatenate_string(root_dir,HypertexProgram); - - if (readablep(command) != 1) { -- fprintf(stderr, "Hypertex program not found.\n"); -+ fprintf(stderr, "Hypertex program not found. Consider installing `open-axiom-hypertex' package.\n"); - return; - } - if (PasteFile){ -@@ -481,7 +481,7 @@ - if (readablep(command) == 1) - spawn_of_hell(command, DoItAgain); - else -- fprintf(stderr, "Graphics program not found.\n"); -+ fprintf(stderr, "Graphics program not found. Consider installing `open-axiom-graphics' package.\n"); - } - - /* Start the core executable session in a separate process, */ diff --git a/debian/patches/no-missing-messages.patch b/debian/patches/no-missing-messages.patch new file mode 100644 index 0000000..a888d33 --- /dev/null +++ b/debian/patches/no-missing-messages.patch @@ -0,0 +1,21 @@ +Index: open-axiom-debian/src/sman/sman.c +=================================================================== +--- open-axiom-debian.orig/src/sman/sman.c 2011-08-29 04:10:30.000000000 +0400 ++++ open-axiom-debian/src/sman/sman.c 2011-08-29 04:11:32.000000000 +0400 +@@ -450,7 +450,6 @@ + const char* command = oa_concatenate_string(root_dir,HypertexProgram); + + if (readablep(command) != 1) { +- fprintf(stderr, "Hypertex program not found.\n"); + return; + } + if (PasteFile){ +@@ -480,8 +479,6 @@ + + if (readablep(command) == 1) + spawn_of_hell(command, DoItAgain); +- else +- fprintf(stderr, "Graphics program not found.\n"); + } + + /* Start the core executable session in a separate process, */ diff --git a/debian/patches/series b/debian/patches/series index dff9476..b38a365 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,3 @@ install-dir.patch -debian-pkg-hint.patch +no-missing-messages.patch non-static-open-axiom-binary.patch -- cgit v1.2.3