~ubuntu-branches/ubuntu/raring/hplip/raring

« back to all changes in this revision

Viewing changes to debian/patches/hp-mkuri-take-into-account-already-installed-plugin-also-for-exit-value.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2010-04-13 06:45:34 UTC
  • mfrom: (11.1.1 sid) (2.1.132 lucid)
  • Revision ID: james.westby@ubuntu.com-20100413064534-2bwhac9bz52lekz4
Tags: 3.10.2-3
Fix "[hpijs-ppds] missing A3 media size for HP Color Inkjet cp1700"
Till reworked c1700 dpatch (Closes: #503621)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## hp-mkuri-take-into-account-already-installed-plugin-also-for-exit-value.dpatch by  <till.kamppeter@gmail.com>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: No description.
 
6
 
 
7
@DPATCH@
 
8
diff -urNad hplip-3.10.2~/io/hpmud/hp-mkuri.c hplip-3.10.2/io/hpmud/hp-mkuri.c
 
9
--- hplip-3.10.2~/io/hpmud/hp-mkuri.c   2010-03-17 22:42:56.682033355 +0100
 
10
+++ hplip-3.10.2/io/hpmud/hp-mkuri.c    2010-03-17 22:45:36.370765292 +0100
 
11
@@ -385,17 +385,23 @@
 
12
    }
 
13
 
 
14
    ret = 0;
 
15
-   if (plugin == HPMUD_PLUGIN_TYPE_REQUIRED)
 
16
-      ret = 2;
 
17
-   else if (plugin == HPMUD_PLUGIN_TYPE_OPTIONAL)
 
18
-      ret = 3;
 
19
-   if (fax > 0)
 
20
+   if (!plugin_installed)
 
21
    {
 
22
-      ret = 4;
 
23
       if (plugin == HPMUD_PLUGIN_TYPE_REQUIRED)
 
24
-         ret = 5;
 
25
+         ret = 2;
 
26
       else if (plugin == HPMUD_PLUGIN_TYPE_OPTIONAL)
 
27
-         ret = 6;
 
28
+         ret = 3;
 
29
+   }
 
30
+   if (fax > 0)
 
31
+   {
 
32
+      ret = 4;
 
33
+      if (!plugin_installed)
 
34
+      {
 
35
+        if (plugin == HPMUD_PLUGIN_TYPE_REQUIRED)
 
36
+           ret = 5;
 
37
+        else if (plugin == HPMUD_PLUGIN_TYPE_OPTIONAL)
 
38
+           ret = 6;
 
39
+      }
 
40
    }
 
41
 
 
42
 bugout: