rpms/hal-cups-utils/devel hal-cups-utils-hplip.patch,1.1,1.2
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Mon Dec 18 10:35:51 UTC 2006
Author: twaugh
Update of /cvs/dist/rpms/hal-cups-utils/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv3517
Modified Files:
hal-cups-utils-hplip.patch
Log Message:
Don't search all available URIs when the right one has already been found.
hal-cups-utils-hplip.patch:
hal_lpadmin | 31 ++++++++++++++++++++++++++++---
1 files changed, 28 insertions(+), 3 deletions(-)
Index: hal-cups-utils-hplip.patch
===================================================================
RCS file: /cvs/dist/rpms/hal-cups-utils/devel/hal-cups-utils-hplip.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- hal-cups-utils-hplip.patch 17 Dec 2006 19:05:37 -0000 1.1
+++ hal-cups-utils-hplip.patch 18 Dec 2006 10:35:48 -0000 1.2
@@ -1,5 +1,5 @@
---- hal-cups-utils-0.6.2/systemv/hal_lpadmin.hplip 2006-12-17 19:03:51.000000000 +0000
-+++ hal-cups-utils-0.6.2/systemv/hal_lpadmin 2006-12-17 19:04:12.000000000 +0000
+--- hal-cups-utils-0.6.2/systemv/hal_lpadmin.hplip 2006-12-18 10:34:49.000000000 +0000
++++ hal-cups-utils-0.6.2/systemv/hal_lpadmin 2006-12-18 10:35:13.000000000 +0000
@@ -8,6 +8,7 @@
class HalPrinter:
def __init__(self):
@@ -8,7 +8,7 @@
try:
self.cups_connection = cups.Connection()
except RuntimeError:
-@@ -44,11 +45,34 @@
+@@ -44,11 +45,35 @@
return name.replace("#", "_")
def get_cups_uris(self):
@@ -35,6 +35,7 @@
+ serial = uri[s:e]
+ if serial == self.properties["printer.serial"]:
+ uris.insert (0, uri)
++ break
+ except:
+ pass
+ self.uris = uris
More information about the fedora-cvs-commits
mailing list