rpms/gutenprint/F-10 gutenprint-foomaticppdupdate, 1.3, 1.4 gutenprint.spec, 1.44, 1.45
Tim Waugh
twaugh at fedoraproject.org
Thu Jan 29 12:36:54 UTC 2009
Author: twaugh
Update of /cvs/pkgs/rpms/gutenprint/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16089
Modified Files:
gutenprint-foomaticppdupdate gutenprint.spec
Log Message:
* Thu Jan 29 2009 Tim Waugh <twaugh at redhat.com> 5.2.3-4
- When updating foomatic PPDs, don't give a traceback if some PPD is
not strictly conformant (bug #481397).
Index: gutenprint-foomaticppdupdate
===================================================================
RCS file: /cvs/pkgs/rpms/gutenprint/F-10/gutenprint-foomaticppdupdate,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- gutenprint-foomaticppdupdate 10 Jan 2009 13:11:30 -0000 1.3
+++ gutenprint-foomaticppdupdate 29 Jan 2009 12:36:23 -0000 1.4
@@ -55,7 +55,12 @@
return ppdobj
def update_ppdfile (ppdfile):
- ppd = cups.PPD (ppdfile)
+ try:
+ ppd = cups.PPD (ppdfile)
+ except RuntimeError:
+ # Invalid PPD in some way.
+ return
+
attr = ppd.findAttr ("FoomaticIDs")
if not attr:
return
Index: gutenprint.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gutenprint/F-10/gutenprint.spec,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- gutenprint.spec 10 Jan 2009 13:11:30 -0000 1.44
+++ gutenprint.spec 29 Jan 2009 12:36:23 -0000 1.45
@@ -4,7 +4,7 @@
Name: gutenprint
Summary: Printer Drivers Package.
Version: 5.2.3
-Release: 3%{?dist}
+Release: 4%{?dist}
Group: System Environment/Base
URL: http://gimp-print.sourceforge.net/
Source0: http://dl.sf.net/gimp-print/gutenprint-%{version}.tar.bz2
@@ -254,6 +254,10 @@
/bin/rm -f /var/cache/foomatic/*
%changelog
+* Thu Jan 29 2009 Tim Waugh <twaugh at redhat.com> 5.2.3-4
+- When updating foomatic PPDs, don't give a traceback if some PPD is
+ not strictly conformant (bug #481397).
+
* Sat Jan 10 2009 Tim Waugh <twaugh at redhat.com> 5.2.3-3
- Don't use popen2 in the foomatic PPD update script.
More information about the fedora-extras-commits
mailing list