[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#592900: marked as done (Use python-cupshelpers instead of python-cupsutils)



Your message dated Mon, 16 Aug 2010 13:32:13 +0000
with message-id <E1OkznR-0001bL-V1@franck.debian.org>
and subject line Bug#592900: fixed in kdeadmin 4:4.4.5-1.1
has caused the Debian Bug report #592900,
regarding Use python-cupshelpers instead of python-cupsutils
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
592900: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=592900
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: system-config-printer-kde
Version: 4:4.4.5-1
Severity: normal
Tags: patch

Hi,
attached patch makes system-config-printer-kde use python-cupshelpers.
The package got renamed to match upstreams name and is currently sitting
in experimental.
I'd be great to have this applied so a new system-config-printer can be
moved into unstable.

The first attached patch can be applied to the Debian package as is. The
second patch is just for reference, it shows the changes that need to be
made to the upstream source.

Cheers,
 -- Guido


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
>From 5c6b8fe479bb337e720f22aec7672e166f30555f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Fri, 13 Aug 2010 19:36:56 +0200
Subject: [PATCH] Use python-cupshelpers instead of python-cupsutils

---
 debian/control                                     |    2 +-
 .../01_system_config_printer_kde_cupsutils.diff    |   76 +++++---------------
 2 files changed, 20 insertions(+), 58 deletions(-)

diff --git a/debian/control b/debian/control
index 6773527..9bbe37e 100644
--- a/debian/control
+++ b/debian/control
@@ -91,7 +91,7 @@ Package: system-config-printer-kde
 Section: admin
 Architecture: all
 Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-qt4-dbus,
- python-kde4 (>= 4:4.2.0), python-cupsutils (>= 1.0.0-6)
+ python-kde4 (>= 4:4.2.0), python-cupshelpers (>= 1.2.3-0.2~)
 Description: printer configuration utility
  This package contains a KDE application which can be used to configure
  and manage printers.
diff --git a/debian/patches/01_system_config_printer_kde_cupsutils.diff b/debian/patches/01_system_config_printer_kde_cupsutils.diff
index e5b1cbf..fd577d7 100644
--- a/debian/patches/01_system_config_printer_kde_cupsutils.diff
+++ b/debian/patches/01_system_config_printer_kde_cupsutils.diff
@@ -1,28 +1,19 @@
-Description: Cope with system-config-printer split (now depends only on python-cupsutils)
+Description: Cope with system-config-printer split (now depends only on python-cupshelpers)
  Thanks to Josselin Mouette for the orginal patch.
 Origin: vendor: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=525558#21
 Bug-Debian: http://bugs.debian.org/525558
 Author: Didier Raboud <didier@raboud.com>
-Last-Update: 2009-08-09
+Last-Update: 2010-08-13
 
-Index: kdeadmin-4.3.0/system-config-printer-kde/cmake-modules/FindSystemConfigPrinter.py
-===================================================================
---- kdeadmin-4.3.0.orig/system-config-printer-kde/cmake-modules/FindSystemConfigPrinter.py	2009-08-09 00:36:41.000000000 +0200
-+++ kdeadmin-4.3.0/system-config-printer-kde/cmake-modules/FindSystemConfigPrinter.py	2009-08-09 11:25:52.000000000 +0200
-@@ -8,7 +8,7 @@
- sys.path.append (SYSTEM_CONFIG_PRINTER_DIR)
- 
- try:
--    import cupshelpers.ppds, cupshelpers.cupshelpers
-+    import cupsutils.ppds, cupsutils.cupshelpers
- except:
-     exit(1)
- print "Groovy"
-Index: kdeadmin-4.3.0/system-config-printer-kde/system-config-printer-kde.py
-===================================================================
---- kdeadmin-4.3.0.orig/system-config-printer-kde/system-config-printer-kde.py	2009-08-09 00:36:41.000000000 +0200
-+++ kdeadmin-4.3.0/system-config-printer-kde/system-config-printer-kde.py	2009-08-09 12:00:54.000000000 +0200
-@@ -33,11 +33,6 @@
+---
+ .../system-config-printer-kde.py                   |   28 ++++++-------------
+ 1 files changed, 9 insertions(+), 19 deletions(-)
+
+diff --git a/system-config-printer-kde/system-config-printer-kde.py b/system-config-printer-kde/system-config-printer-kde.py
+index 650d665..02c71eb 100755
+--- a/system-config-printer-kde/system-config-printer-kde.py
++++ b/system-config-printer-kde/system-config-printer-kde.py
+@@ -33,11 +33,6 @@ import locale
  
  import sys, os, time, traceback, re, tempfile, httplib, thread
  
@@ -34,7 +25,7 @@ Index: kdeadmin-4.3.0/system-config-printer-kde/system-config-printer-kde.py
  from PyQt4.QtCore import *
  from PyQt4.QtGui import *
  from PyQt4 import uic
-@@ -65,12 +60,16 @@
+@@ -65,12 +60,13 @@ uic.properties.Properties._string = translate
  import cups
  cups.require ("1.9.27")
  
@@ -42,21 +33,18 @@ Index: kdeadmin-4.3.0/system-config-printer-kde/system-config-printer-kde.py
 -import config
 -import cupshelpers, options
 +# These come from python-cupsutils
-+import cupsutils.ppds
-+try:
-+    import cupshelpers
-+except ImportError:
-+    from cupsutils import cupshelpers
++import cupshelpers.ppds
++from cupshelpers import cupshelpers
 +import options
  from optionwidgets import OptionWidget
 -from smburi import SMBURI
 -from debug import *
-+from cupsutils.smburi import SMBURI
-+from cupsutils.debug import *
++from cupshelpers.smburi import SMBURI
++from cupshelpers.debug import *
  
  import dbus
  import dbus.mainloop.qt
-@@ -898,10 +897,6 @@
+@@ -898,10 +894,6 @@ class GUI(QWidget):
              # otherwise use cups' default one
              custom_testpage = None
              opt = self.ppd.findOption ("PageSize")
@@ -67,7 +55,7 @@ Index: kdeadmin-4.3.0/system-config-printer-kde/system-config-printer-kde.py
  
              if custom_testpage and os.path.exists(custom_testpage):
                  debugprint ('Printing custom test page ' + custom_testpage)
-@@ -2083,11 +2078,9 @@
+@@ -2083,11 +2075,9 @@ class NewPrinterGUI(QDialog):
          #self.connect(self.btnNCAddMember, SIGNAL("clicked()"), self.slot_btnNCAddMember_clicked)
          #self.connect(self.btnNCDelMember, SIGNAL("clicked()"), self.slot_btnNCDelMember_clicked)
  
@@ -82,30 +70,4 @@ Index: kdeadmin-4.3.0/system-config-printer-kde/system-config-printer-kde.py
  
          """
          # Set up OpenPrinting widgets.
-@@ -2297,7 +2290,7 @@
-             c = cups.Connection ()
-             debugprint ("Fetching PPDs")
-             ppds_dict = c.getPPDs()
--            self.ppds_result = cupshelpers.ppds.PPDs(ppds_dict,
-+            self.ppds_result = cupsutils.ppds.PPDs(ppds_dict,
-                                                      language=language)
-             debugprint ("Closing connection (PPDs)")
-             del c
-@@ -2523,7 +2516,7 @@
-                         ppddict = self.ppds.getInfoFromPPDName (ppdname)
-                         make_model = ppddict['ppd-make-and-model']
-                         (make, model) = \
--                            cupshelpers.ppds.ppdMakeModelSplit (make_model)
-+                            cupsutils.ppds.ppdMakeModelSplit (make_model)
-                         self.auto_make = make
-                         self.auto_model = model
-                 except:
-@@ -2892,7 +2885,7 @@
-         if make_and_model and not device.id:
-             mk = None
-             md = None
--            (mk, md) = cupshelpers.ppds.ppdMakeModelSplit (make_and_model)
-+            (mk, md) = cupsutils.ppds.ppdMakeModelSplit (make_and_model)
-             device.id = "MFG:" + mk + ";MDL:" + md + ";DES:" + mk + " " + md + ";"
-             device.id_dict = cupshelpers.parseDeviceID (device.id)
-         # Check whether the device is supported by HPLIP and replace
+-- 
-- 
1.7.1

From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Fri, 13 Aug 2010 19:48:07 +0200
Subject: [PATCH] 01_system_config_printer_kde_cupsutils.diff

---
 .../system-config-printer-kde.py                   |   28 ++++++-------------
 1 files changed, 9 insertions(+), 19 deletions(-)

diff --git a/system-config-printer-kde/system-config-printer-kde.py b/system-config-printer-kde/system-config-printer-kde.py
index 650d665..02c71eb 100755
--- a/system-config-printer-kde/system-config-printer-kde.py
+++ b/system-config-printer-kde/system-config-printer-kde.py
@@ -33,11 +33,6 @@ import locale
 
 import sys, os, time, traceback, re, tempfile, httplib, thread
 
-#load modules from system-config-printer-common (debug, smburi), change path here if you have it installed elsewhere
-SYSTEM_CONFIG_PRINTER_DIR = "/usr/share/system-config-printer"
-if os.path.exists(SYSTEM_CONFIG_PRINTER_DIR + "/debug.py"):
-    sys.path.append(SYSTEM_CONFIG_PRINTER_DIR)
-
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 from PyQt4 import uic
@@ -65,12 +60,13 @@ uic.properties.Properties._string = translate
 import cups
 cups.require ("1.9.27")
 
-# These come from system-config-printer
-import config
-import cupshelpers, options
+# These come from python-cupsutils
+import cupshelpers.ppds
+from cupshelpers import cupshelpers
+import options
 from optionwidgets import OptionWidget
-from smburi import SMBURI
-from debug import *
+from cupshelpers.smburi import SMBURI
+from cupshelpers.debug import *
 
 import dbus
 import dbus.mainloop.qt
@@ -898,10 +894,6 @@ class GUI(QWidget):
             # otherwise use cups' default one
             custom_testpage = None
             opt = self.ppd.findOption ("PageSize")
-            if opt:
-                print opt
-                custom_testpage = os.path.join(SYSTEM_CONFIG_PRINTER_DIR, 'testpage-%s.ps' % opt.defchoice.lower())
-                print custom_testpage
 
             if custom_testpage and os.path.exists(custom_testpage):
                 debugprint ('Printing custom test page ' + custom_testpage)
@@ -2083,11 +2075,9 @@ class NewPrinterGUI(QDialog):
         #self.connect(self.btnNCAddMember, SIGNAL("clicked()"), self.slot_btnNCAddMember_clicked)
         #self.connect(self.btnNCDelMember, SIGNAL("clicked()"), self.slot_btnNCDelMember_clicked)
 
-        # Optionally disable downloadable driver support.
-        #if not config.DOWNLOADABLE_DRIVER_SUPPORT:
-        if True:
-            self.rbtnNPDownloadableDriverSearch.setEnabled(False)
-            self.downloadableDriverSearchFrame.hide()
+        # Disable downloadable driver support.
+        self.rbtnNPDownloadableDriverSearch.setEnabled(False)
+        self.downloadableDriverSearchFrame.hide()
 
         """
         # Set up OpenPrinting widgets.
-- 

--- End Message ---
--- Begin Message ---
Source: kdeadmin
Source-Version: 4:4.4.5-1.1

We believe that the bug you reported is fixed in the latest version of
kdeadmin, which is due to be installed in the Debian FTP archive:

kcron_4.4.5-1.1_all.deb
  to main/k/kdeadmin/kcron_4.4.5-1.1_all.deb
kde-config-cron_4.4.5-1.1_i386.deb
  to main/k/kdeadmin/kde-config-cron_4.4.5-1.1_i386.deb
kdeadmin-dbg_4.4.5-1.1_i386.deb
  to main/k/kdeadmin/kdeadmin-dbg_4.4.5-1.1_i386.deb
kdeadmin_4.4.5-1.1.debian.tar.gz
  to main/k/kdeadmin/kdeadmin_4.4.5-1.1.debian.tar.gz
kdeadmin_4.4.5-1.1.dsc
  to main/k/kdeadmin/kdeadmin_4.4.5-1.1.dsc
kdeadmin_4.4.5-1.1_all.deb
  to main/k/kdeadmin/kdeadmin_4.4.5-1.1_all.deb
knetworkconf_4.4.5-1.1_i386.deb
  to main/k/kdeadmin/knetworkconf_4.4.5-1.1_i386.deb
ksystemlog_4.4.5-1.1_i386.deb
  to main/k/kdeadmin/ksystemlog_4.4.5-1.1_i386.deb
kuser_4.4.5-1.1_i386.deb
  to main/k/kdeadmin/kuser_4.4.5-1.1_i386.deb
system-config-printer-kde_4.4.5-1.1_all.deb
  to main/k/kdeadmin/system-config-printer-kde_4.4.5-1.1_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 592900@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guido Günther <agx@sigxcpu.org> (supplier of updated kdeadmin package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 15 Aug 2010 20:21:53 +0200
Source: kdeadmin
Binary: kdeadmin kcron kde-config-cron knetworkconf ksystemlog kuser system-config-printer-kde kdeadmin-dbg
Architecture: source all i386
Version: 4:4.4.5-1.1
Distribution: experimental
Urgency: low
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Guido Günther <agx@sigxcpu.org>
Description: 
 kcron      - program scheduler frontend - transitional package
 kde-config-cron - program scheduler frontend
 kdeadmin   - system administration tools from the official KDE release
 kdeadmin-dbg - debugging symbols for kdeadmin
 knetworkconf - network configuration tool
 ksystemlog - system log viewer
 kuser      - user and group administration tool
 system-config-printer-kde - printer configuration utility
Closes: 592900
Changes: 
 kdeadmin (4:4.4.5-1.1) experimental; urgency=low
 .
   * Non-maintainer upload.
   * Use python-cupshelpers instead of python-cupsutils (Closes: #592900)
Checksums-Sha1: 
 eb346e269a0622735e41cd20e6b3ee6ddc3f6b92 1597 kdeadmin_4.4.5-1.1.dsc
 8b708f3cb985aeac6d24e029ecd49292c160de19 12508 kdeadmin_4.4.5-1.1.debian.tar.gz
 0ad10e01f7d9104a4a2104c25c5b1a0c5fb48778 8602 kdeadmin_4.4.5-1.1_all.deb
 2ce21f57d4f0d10197fa2b40ff4954a466a487f0 8336 kcron_4.4.5-1.1_all.deb
 f405d2dd4054848aef7ab372b0f1cbfde5510a60 60388 system-config-printer-kde_4.4.5-1.1_all.deb
 a80dbcf4e82f94a107adab029336a4437910e5cd 237692 kde-config-cron_4.4.5-1.1_i386.deb
 6ba405591491e162774a4883ac8fd8e3f87537b7 493376 knetworkconf_4.4.5-1.1_i386.deb
 7e987f0fcdfa05d3146b252b9eabb8ec366fad58 686194 ksystemlog_4.4.5-1.1_i386.deb
 3cd41206452403e8f3e2999e8ac847e509100d93 266012 kuser_4.4.5-1.1_i386.deb
 8008b4e45f1ce1fd73a64a789cc079f7e9662f05 7011964 kdeadmin-dbg_4.4.5-1.1_i386.deb
Checksums-Sha256: 
 cb8b7a122fe97eb83658b318a37771a165d13d5a439ba5c3a3171027e50fc07a 1597 kdeadmin_4.4.5-1.1.dsc
 1d63c5b8bb2b8e6a9da8782548b16ca8710da0f7fcc5e5cd34af786396a08d5e 12508 kdeadmin_4.4.5-1.1.debian.tar.gz
 b5a0dbff9a95f1fc526651797b72650453a2642ce70e6bd86a57853862cbd292 8602 kdeadmin_4.4.5-1.1_all.deb
 21c250a2d1b61714e184e6b4ddbd983ea1ce27b366af472a64cf9b7fd2ebe4c3 8336 kcron_4.4.5-1.1_all.deb
 42003e1ada8f49457562b346e23bc9b5d9763a57c24d06aecf8c2cbf31b88d33 60388 system-config-printer-kde_4.4.5-1.1_all.deb
 7f705696d67e1e0ed0b88209bce710ea372853259b01808e54d428576bf60422 237692 kde-config-cron_4.4.5-1.1_i386.deb
 077eb1c338c1351b3ff44e75ea7f1080e39e57d5dad83e98a8a8fb6766d3416f 493376 knetworkconf_4.4.5-1.1_i386.deb
 9a731bb455c1cca4af3474bb68fe967d12e9c096862885b1c079df3462b9486c 686194 ksystemlog_4.4.5-1.1_i386.deb
 190f873df27213ab3572bedf2c9af3fd08a80a204607fe2309497491b875a7f8 266012 kuser_4.4.5-1.1_i386.deb
 f9f6956c19113d792d483bc0936ad087b26d9b55ccabe10e435147ea89bc0ddd 7011964 kdeadmin-dbg_4.4.5-1.1_i386.deb
Files: 
 08d0281caeef41b79645ffca3d0fc343 1597 kde optional kdeadmin_4.4.5-1.1.dsc
 2a54d8e53db32e6317026e3858342ec4 12508 kde optional kdeadmin_4.4.5-1.1.debian.tar.gz
 287e2d336acee4e0c54365c15411e371 8602 kde optional kdeadmin_4.4.5-1.1_all.deb
 cb06c60161ab71805f4a15bb347ae649 8336 admin optional kcron_4.4.5-1.1_all.deb
 5e743b8ba3b41eb5f5b0e2dd8a97125b 60388 admin optional system-config-printer-kde_4.4.5-1.1_all.deb
 9d53cbd3c9fc66aa4809bb4b1e2c0c5d 237692 admin optional kde-config-cron_4.4.5-1.1_i386.deb
 880100b8247ee16c105002085f74f850 493376 net optional knetworkconf_4.4.5-1.1_i386.deb
 630b85556c3b6c1d161b717f33b7f67b 686194 admin optional ksystemlog_4.4.5-1.1_i386.deb
 1714a4b54f99275395646378f02ad7e2 266012 admin optional kuser_4.4.5-1.1_i386.deb
 3993aaaca1fb9c71185c36b051b3fe67 7011964 debug extra kdeadmin-dbg_4.4.5-1.1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQFMaTvmn88szT8+ZCYRAp4BAJ9xM6i4ed7y2H2BHV68f+vY2fQcZwCdEhdQ
VDvh6QXmvzBBPMc+yR5qnwE=
=P5Vw
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: